From 3bb4855cf53f01e455c57dee8fb1b96c0716db8a Mon Sep 17 00:00:00 2001 From: weasel Date: Mon, 12 Sep 2005 14:39:49 +0000 Subject: [PATCH] Check if the tag already exists git-svn-id: svn://svn.debian.org/pgp-tools/trunk@253 b513b33f-fedd-0310-b452-c3deb5f4c849 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.30.2