Install Watchman (https://facebook.github.io/watchman) on Ubuntu 16.04 LTS
#!/bin/bash
# watchman_xenial.sh
# installs watchman on Ubuntu 16.04
# working directory
WD="${HOME}/Applications"
# watchman branch to get and install
WATCHMAN_BRANCH="v4.9.0"
# URL to the watchman repo
WATCHMAN_REPO="https://github.com/facebook/watchman.git"
# prefix for make
PREFIX="${HOME}/.local"
# install dependencies
sudo apt install -y libtool m4 automake build-essential pkg-config
# if you are not using your local python
sudo apt install -y python-dev
mkdir "${WD}"
pushd "${WD}"
# clone only the branch needed
git clone -b "${WATCHMAN_BRANCH}" --single-branch "${WATCHMAN_REPO}"
# configure, make and install
pushd watchman
./autogen.sh
./configure --prefix="${PREFIX}"
make && make install
popd
popd
exit