commit 0e9a2c7d1d573efa1409280752f4660dfcb84a70
parent 28181b82defdd54e029e6c8fbb574df2b4179403
Author: Geoff Johnstone <qwerty@acm.org>
Date: Thu, 26 Mar 2009 21:28:01 +0000
gitified.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.hgignore b/.gitignore
diff --git a/Makefile b/Makefile
@@ -84,11 +84,12 @@ tar: VERSION=$(shell grep 'USMB_VERSION[^_]' version.h | sed 's/.*0x//')
tar: STAGING=/tmp/usmb-$(VERSION)
tar:
mkdir $(STAGING)
+ git archive $(VERSION) | tar -C $(STAGING) -x -f -
+ git log > $(STAGING)/Changelog
hg log -v > $(STAGING)/Changelog
cp -a $(PWD)/* $(STAGING)/
rm -rf $(STAGING)/.hg
(cd $(STAGING)/..; \
- make -C $(STAGING) distclean ; \
tar jcf $(PWD)/usmb-$(VERSION).tar.bz2 usmb-$(VERSION) ; \
tar zcf $(PWD)/usmb-$(VERSION).tar.gz usmb-$(VERSION))
rm -rf $(STAGING)