change makefile to use git-buildpackage for debian packaging
authorJameson Rollins <jrollins@finestructure.net>
Tue, 23 Mar 2010 06:42:13 +0000 (02:42 -0400)
committerJameson Rollins <jrollins@finestructure.net>
Tue, 23 Mar 2010 06:47:56 +0000 (02:47 -0400)
Makefile

index 08880a11d4248741fb4e3ed4da90b11cd93fce45..f52c82cc1485a3826e6f07260956bd2a2dfec667 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -26,11 +26,8 @@ tarball: clean
        tar -ch --exclude='*~' monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
        rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
 
-debian-package: tarball
-       tar xzf monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
-       cp -a packaging/debian monkeysphere-$(MONKEYSPHERE_VERSION)
-       (cd monkeysphere-$(MONKEYSPHERE_VERSION) && debuild -uc -us)
-       rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
+debian-package:
+       git buildpackage -uc -us --git-upstream-branch=master --git-debian-branch=debian --git-no-pristine-tar --git-ignore-new
 
 # don't explicitly depend on the tarball, since our tarball
 # (re)generation is not idempotent even when no source changes.