Post Wednesday, 22nd April 2015, 19:16

OSX bash install / update script for Crawl

Hi, i made a bash install / update script for Crawl on OSX.

The script clones or pulls the source and builds the tiles mac app version and copies it to the Applications folder - removing older versions.

  Code:
#!/bin/bash
mkdir -p ~/bin/crawl
cd ~/bin/crawl

if [ -d .git ]; then
  git pull
else
  git clone https://github.com/crawl/crawl.git .
fi

git submodule update --init

rm -r "/Applications/Dungeon Crawl Stone Soup - Tiles.app"
rm -r ~/bin/crawl/crawl-ref/source/mac-app-zips

cd ~/bin/crawl/crawl-ref/source
make mac-app-tiles APPLE_GCC=y NO_PKGCONFIG=y CONTRIB_SDL=y TILES=y

cd ~/bin/crawl/crawl-ref/source/mac-app-zips/
unzip *

cp -r *.app /Applications