Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Shell script to pull and compile latest OpenXcom code.
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