1 MONKEYSPHERE_VERSION=`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
6 $(MAKE) -C src/keytrans
9 rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
10 mkdir -p monkeysphere-$(MONKEYSPHERE_VERSION)/doc
11 ln -s ../../website/getting-started-user.mdwn ../../website/getting-started-admin.mdwn ../../doc/TODO ../../doc/MonkeySpec monkeysphere-$(MONKEYSPHERE_VERSION)/doc
12 ln -s ../COPYING ../etc ../Makefile ../man ../src monkeysphere-$(MONKEYSPHERE_VERSION)
13 tar -ch monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
14 rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
16 debian-package: release
17 tar xzf monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
18 cp -a debian monkeysphere-$(MONKEYSPHERE_VERSION)
19 (cd monkeysphere-$(MONKEYSPHERE_VERSION) && debuild -uc -us)
20 rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
23 $(MAKE) -C src/keytrans clean
24 # clean up old monkeysphere packages lying around as well.
27 .PHONY: all clean release debian-package