From: Francois Marier Date: Fri, 16 Nov 2007 02:26:45 +0000 (+1300) Subject: Add a "sponsor" target for sponsored builds X-Git-Tag: 0.4~5 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab6cdbf74dfd87bc2dd58da9a417a9f874a9e51b;p=mythtv-status.git Add a "sponsor" target for sponsored builds --- diff --git a/Makefile b/Makefile index 41beab7..349114f 100644 --- 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