#!/bin/sh
set -x
case `uname` in
  Linux)
    sudo sysctl -A | grep inotify
    sudo apt-get update -y -q
    sudo apt-get install -y ruby rubygems valgrind -q
    mount
    ;;
  Darwin)
    brew update
    brew install valgrind
    ;;
esac
set -e
sudo gem install bundler
if [ ! -d a ] ; then
  mkdir a
fi
cd a
rm -f master.zip
if [ ! -d libphutil ] ; then
  wget https://github.com/facebook/libphutil/archive/master.zip
  unzip master.zip
  mv libphutil-master libphutil
  rm master.zip
fi
if [ ! -d arcanist ] ; then
  wget https://github.com/facebook/arcanist/archive/master.zip
  unzip master.zip
  mv arcanist-master arcanist
  rm master.zip
fi
cd ..
ln -sf ./a/arcanist/bin/arc arc

#!/bin/sh
set -x
case `uname` in
  Linux)
    sudo sysctl -A | grep inotify
    sudo apt-get update -y -q
    sudo apt-get install -y ruby valgrind -q
    mount
    ;;
  Darwin)
    brew update
    brew install valgrind
    ;;
esac
set -e
sudo gem install bundler
if [ ! -d a ] ; then
  mkdir a
fi
cd a
rm -f master.zip
if [ ! -d libphutil ] ; then
  wget https://github.com/facebook/libphutil/archive/master.zip
  unzip master.zip
  mv libphutil-master libphutil
  rm master.zip
fi
if [ ! -d arcanist ] ; then
  wget https://github.com/facebook/arcanist/archive/master.zip
  unzip master.zip
  mv arcanist-master arcanist
  rm master.zip
fi
cd ..
ln -sf ./a/arcanist/bin/arc arc

--- 
+++ 
@@ -4,7 +4,7 @@
   Linux)
     sudo sysctl -A | grep inotify
     sudo apt-get update -y -q
-    sudo apt-get install -y ruby rubygems valgrind -q
+    sudo apt-get install -y ruby valgrind -q
     mount
     ;;
   Darwin)
Make sure Rubygems is available

Trying to keep Travis happy:

https://travis-ci.org/facebook/watchman/jobs/25163002
