diff options
Diffstat (limited to 'maintainer')
-rwxr-xr-x | maintainer | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/maintainer b/maintainer new file mode 100755 index 0000000..607152c --- /dev/null +++ b/maintainer @@ -0,0 +1,46 @@ +#!/usr/bin/make -f +SHELL = /bin/bash +GITDIR = ../.git + +help: + @echo "Subcommands: bump sync commit tag tarball sign" + +PKGNAME = $(shell cat config/PKGNAME) +VERSION = $(shell cat config/VERSION) + +NV = $(PKGNAME)-$(VERSION) +TARBALL = $(NV).tar.bz2 + +# Construction Rules + +setup.py: setup.py.in config/PKGNAME config/VERSION + sed -e s:@VERSION@:$(VERSION):g < $< > $@ + +bump: + config/bump_version + +sync: setup.py + +commit: + git commit --allow-empty -a -m "$(NV)." + +$(GITDIR)/refs/tags/$(NV): + git tag -s -f -m "$(NV)" $(NV) + +tag: $(GITDIR)/refs/tags/$(NV) + +$(TARBALL): $(GITDIR)/refs/tags/$(NV) + git archive --format=tar --prefix=$(NV)/ $(NV) | bzip2 > $(TARBALL) + +tarball: $(TARBALL) + +$(TARBALL).asc: $(TARBALL) + gpg -ab $< + +sign: $(TARBALL).asc + +# Snapshot and Release Rules + +.PHONY: bump commit tarball sign + +# vim: set noet ts=8 sw=8 : |