From: mike castleman Date: Sun, 12 Jul 2009 01:41:13 +0000 (-0400) Subject: show git revision in version commands X-Git-Tag: monkeysphere_0.25~20^2^2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b5999e976516c0cbde5063635bf8bba74e7a18ad;p=monkeysphere.git show git revision in version commands --- diff --git a/Makefile b/Makefile index 1744ea8..7db62e4 100755 --- a/Makefile +++ b/Makefile @@ -22,7 +22,9 @@ tarball: clean mkdir -p monkeysphere-$(MONKEYSPHERE_VERSION)/doc ln -s ../../website/getting-started-user.mdwn ../../website/getting-started-admin.mdwn ../../doc/TODO ../../doc/MonkeySpec monkeysphere-$(MONKEYSPHERE_VERSION)/doc ln -s ../COPYING ../etc ../Makefile ../man ../src ../tests monkeysphere-$(MONKEYSPHERE_VERSION) - echo $(MONKEYSPHERE_VERSION) > monkeysphere-$(MONKEYSPHERE_VERSION)/VERSION + echo Monkeysphere $(MONKEYSPHERE_VERSION) > monkeysphere-$(MONKEYSPHERE_VERSION)/VERSION + echo -n "git revision " >> monkeysphere-$(MONKEYSPHERE_VERSION)/VERSION + git rev-parse HEAD >> monkeysphere-$(MONKEYSPHERE_VERSION)/VERSION tar -ch --exclude='*~' monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)