Building unison on homebrew/mac

I thought I’d try Unison out, it’s a directory sync system that’s a bit like rsync but specifically targeted at keeping filesystems in sync in both directions. May solve my problem trying to keep two Macs together with no reasonable Internet to just Dropbox or whatever. OTOH, Unison hasn’t had much development in years. And it’s written in OCaml, oy.

Anyway, it doesn’t build right in Homebrew. Turns out the Makefile is trying to be clever with the variable $NAME and it was picking up my shell environment variable. A simple “unset NAME” before installing seems to have fixed it. Details at