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
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)
clean:
@rm -rf build
-.PHONY: release clean
+.PHONY: release clean sponsor