Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
executable file 18 lines (13 sloc) 0.715 kb
#!/bin/sh
BUILD_DIR=$1
CACHE_DIR=$2
echo "-----> Downloading PCRE"
PCRE_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.31.tar.gz"
curl -# --max-time 30 -L "$PCRE_URL" | tar xz -C "$CACHE_DIR"
cd "$CACHE_DIR/pcre-8.31" && ./configure --prefix="$BUILD_DIR" && make install && cd -
echo "-----> Installing cabal regex packages"
cabal install --extra-include-dirs="$BUILD_DIR/include" --extra-lib-dirs="$BUILD_DIR/lib" regex-pcre regex-pcre-builtin regex-base regex-compat
# hack
ln -s "$BUILD_DIR/bin/node" "$HOME/.cabal/bin/node"
ln -s "$BUILD_DIR/node_modules/coffee-script/bin/coffee" "$HOME/.cabal/bin/coffee"
cp "$BUILD_DIR/config/postgresql.yml.example" "$BUILD_DIR/config/postgresql.yml"
Jump to Line
Something went wrong with that request. Please try again.