summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-03-23 15:47:14 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-03-23 15:47:14 -0400
commitb7f540b814a32e372753ce6fced81b0991dc07b9 (patch)
treed1612896224727ec2305a75e6099725fbdfe362a /Makefile
parent8adb9ceeaee5e4684f47b80de883e1b1daf158a2 (diff)
automate updating of VERSION file
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f52c82c..3880713 100755
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
# © 2008-2010 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
# Licensed under GPL v3 or later
-MONKEYSPHERE_VERSION = `head -n1 Changelog | sed 's/.*(\([^-]*\)).*/\1/'`
+MONKEYSPHERE_VERSION:=$(shell head -n1 Changelog | sed 's/.*(\([^-]*\)).*/\1/')
# these defaults are for debian. porters should probably adjust them
# before calling make install
@@ -26,6 +26,9 @@ tarball: clean
tar -ch --exclude='*~' monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
+VERSION: Changelog
+ sed 's/^Monkeysphere .*$$/Monkeysphere '$(MONKEYSPHERE_VERSION)'/' -i VERSION
+
debian-package:
git buildpackage -uc -us --git-upstream-branch=master --git-debian-branch=debian --git-no-pristine-tar --git-ignore-new