Check if the tag already exists
authorweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Mon, 12 Sep 2005 14:39:49 +0000 (14:39 +0000)
committerweasel <weasel@b513b33f-fedd-0310-b452-c3deb5f4c849>
Mon, 12 Sep 2005 14:39:49 +0000 (14:39 +0000)
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@253 b513b33f-fedd-0310-b452-c3deb5f4c849

Makefile

index a7f32e3127d65133ded7aecf8520385b3ec4e67d..28248c9e582b2afe41093389560980edee69d06f 100644 (file)
--- 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)