X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=Makefile;h=28248c9e582b2afe41093389560980edee69d06f;hb=a2fb65027201a13155b414cf0600fc7b803fb7a0;hp=3e53d30157289b6e037ebe40d97c2b5b6d33b66f;hpb=c874474f39a93381787712eb6938f2128921fc07;p=pgp-tools.git diff --git a/Makefile b/Makefile index 3e53d30..28248c9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ -DIRS=caff gpg-key2ps gpg-mailkeys gpgsigs gpglist +DIRS=caff gpg-key2ps gpg-mailkeys gpgsigs gpglist keylookup VERSION=$(shell dpkg-parsechangelog 2>&1 | perl -ne 'print $$1 if /^Version: ([^-]*)/') +DEBVERSION=$(shell dpkg-parsechangelog 2>&1 | perl -ne 'print $$1 if /^Version: (.*)/') TGZ=../signing-party_$(VERSION).orig.tar.gz TGZ_DIR=signing-party-$(VERSION) @@ -16,3 +17,15 @@ dist: cp -a README TODO Makefile $(TGZ_DIR) tar cvz -f $(TGZ) --exclude .svn $(TGZ_DIR) rm -rf $(TGZ_DIR) + +tag-release: + if svn ls svn+ssh://svn.debian.org/svn/pgp-tools/tags/release-$(VERSION) >/dev/null 2>&1; then \ + echo "Already exists." >&2; exit 1; \ + fi + svn cp -m 'tagging release $(VERSION)' svn+ssh://svn.debian.org/svn/pgp-tools/trunk svn+ssh://svn.debian.org/svn/pgp-tools/tags/release-$(VERSION) + +tag-debian-version: + if svn ls svn+ssh://svn.debian.org/svn/pgp-tools/tags/debian-version-$(DEBVERSION) >/dev/null 2>&1; then \ + echo "Already exists." >&2; exit 1; \ + fi + svn cp -m 'tagging debian version $(DEBVERSION)' svn+ssh://svn.debian.org/svn/pgp-tools/trunk svn+ssh://svn.debian.org/svn/pgp-tools/tags/debian-version-$(DEBVERSION)