Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
cd ~/git/tgstation
git fetch
git reset --hard origin/master
git clean -df
DreamMaker -o tgstation.dme > ~/web/public/objecttree.xml
zip -jD9 /home/static/web/public/byond/tgstation.zip tgstation.rsc
mkdir -p /home/static/web/public/nightlies/$(date '+%Y/%m')
cd ..
zip -9rX /home/static/web/public/nightlies/$(date '+%Y/%m')/$(date '+%Y-%m-%d')-tgstation-nightly.zip tgstation -x *.git/*
cp /home/static/web/public/nightlies/$(date '+%Y/%m')/$(date '+%Y-%m-%d')-tgstation-nightly.zip /home/static/web/public/nightlies/tgstation.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.