diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-08 16:43:32 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-08 16:43:32 -0500 |
commit | 22e83eb9053edb1813349e707b2679c015a51c8b (patch) | |
tree | 9f35067934537118a0dd45186c85598032a2c6b1 | |
parent | ad68c7957beea8e4825c88d4038884e42f46c6f6 (diff) | |
download | taipan-22e83eb9053edb1813349e707b2679c015a51c8b.tar.gz |
push target
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | push.sh | 11 |
2 files changed, 12 insertions, 4 deletions
@@ -194,11 +194,8 @@ clean: distclean: clean rm -f *~ core .*.swp 1.* 2.* 1 2 3 map map.* *.map a b c foo bar baz comptitle.s comptitle.dat -# push to git, create a new build from scratch, post it on webserver, -# and print the short git hash (for copy/pasting into irc). -# "naptime" is a shell script that you don't have :) push: - git push && $(MAKE) distclean all && naptime $(XEX) && git rev-parse --short HEAD + sh push.sh # Cruft. Was used for testing the enemy ship animation. lorchatest: lorchatest.c draw_lorcha.s taifont.xex @@ -0,0 +1,11 @@ +#!/bin/sh + +# push to git, create a new build from scratch, post it on webserver, +# and print the short git hash (for copy/pasting into irc). +# "naptime" is a shell script that you don't have :) + +git push && $MAKE distclean all || exit 1 +URL="$( naptime taipan.xex)" +REV="$( git rev-parse --short HEAD )" + +echo "build ID $REV at $URL" |