This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# linux | |
UNISON_VERSION=2.48.4 | |
sudo apt-get -y install inotify-tools ocaml-nox build-essential | |
curl -L https://github.com/bcpierce00/unison/archive/${UNISON_VERSION}.tar.gz | tar zxv -C /tmp | |
cd /tmp/unison-${UNISON_VERSION} | |
sed -i -e 's/GLIBC_SUPPORT_INOTIFY 0/GLIBC_SUPPORT_INOTIFY 1/' src/fsmonitor/linux/inotify_stubs.c | |
make UISTYLE=text NATIVE=true STATIC=true | |
cp src/unison src/unison-fsmonitor ~/bin | |
# You should modify your path to include ~/bin |