From: weasel Date: Mon, 12 Sep 2005 14:39:49 +0000 (+0000) Subject: Check if the tag already exists X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=3bb4855cf53f01e455c57dee8fb1b96c0716db8a;p=pgp-tools.git Check if the tag already exists git-svn-id: svn://svn.debian.org/pgp-tools/trunk@253 b513b33f-fedd-0310-b452-c3deb5f4c849 --- diff --git a/Makefile b/Makefile index a7f32e3..28248c9 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,13 @@ dist: 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)