Skip to content

Instantly share code, notes, and snippets.

@Oshuma
Created February 8, 2014 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Oshuma/8892117 to your computer and use it in GitHub Desktop.
Save Oshuma/8892117 to your computer and use it in GitHub Desktop.
Shell script to pull and compile latest OpenXcom code.
#!/bin/sh
echo "\n== Stashing changes..."
git stash &&
echo "\n== Pulling latest code..."
git pull &&
echo "\n== Removing old build/ dir..."
rm -rf ./build/ &&
echo "\n== Creating build files..."
mkdir build &&
cd build &&
cmake .. &&
echo "\n== Building..."
make &&
rm -vf ../bin/openxcom &&
ln -s `pwd`/bin/openxcom ../bin/openxcom &&
cd .. &&
echo "\n== Re-applying stashed changes..."
git stash pop &&
echo "\n== Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment