diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-07-21 17:30:43 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-07-21 17:30:43 (GMT) |
commit | 5ab8ddb8ddb8dc6925cb3bb5f52e0a06b7a1c439 (patch) | |
tree | 01e6ca6d9d6eaa54052480200f039c8e50f0166f /maintainer | |
parent | d4fe57f377d8f78f02a9e5f6d9c201b4e9eb86f4 (diff) |
rearrange source tree to match that of the tarball
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 : |