]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Add a "sponsor" target for sponsored builds
authorFrancois Marier <francois@debian.org>
Fri, 16 Nov 2007 02:26:45 +0000 (15:26 +1300)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Fri, 16 Nov 2007 02:32:44 +0000 (15:32 +1300)
Makefile

index 41beab74c85a2e5f121981612324018183a11e64..349114fc135bc739d7ecf30639e08dd3fb131f88 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,13 @@
 
 package=mythtv-status
 releases=etch sid
+sponsor_keyid=19D03486
 
 build=dpkg-buildpackage -uc -us -rfakeroot
 version=$(shell git-tag -l | tail -1)
 
 deb=$(package)_$(version)_all.deb
+orig_tarball=../$(package)_$(version).orig.tar.gz
 tarball=build/tarball/$(package)-$(version).tar.gz
 tarball_dir=../$(package)_tarballs
 
@@ -18,6 +20,12 @@ all: release
 
 release: $(RELEASE_FILES)
 
+$(orig_tarball): $(tarball)
+       @ln -s `basename \`pwd\``/$< $@
+
+sponsor: $(orig_tarball)
+       dpkg-buildpackage -rfakeroot -k$(sponsor_keyid) -i'($.git|$build)' -tc
+
 $(tarball):
        @mkdir -p $(@D)
        @git-archive --format=tar $(version) `git-ls-tree --name-only $(version) | egrep -v "(.gitignore|debian|Makefile)"` | gzip > $(tarball)
@@ -41,4 +49,4 @@ publish: $(RELEASE_FILES)
 clean:
        @rm -rf build
 
-.PHONY: release clean
+.PHONY: release clean sponsor