show git revision in version commands
authormike castleman <m@mlcastle.net>
Sun, 12 Jul 2009 01:41:13 +0000 (21:41 -0400)
committermike castleman <m@mlcastle.net>
Sun, 12 Jul 2009 01:41:13 +0000 (21:41 -0400)
Makefile

index 1744ea87f3fb6a716adaefbd1a6d9b0d776cfc55..7db62e4f3d0fda22d62cfb2a27182d6a136aeb3a 100755 (executable)
--- 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)