diff options
author | Nikolaus Schulz <microschulz@web.de> | 2006-10-14 19:37:08 +0000 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2006-10-14 19:37:08 +0000 |
commit | eb2b4a64f924bbeadb0491e488e2651e0bb295c9 (patch) | |
tree | 2664d6c1f8d961e36c48c52223244380495b9b88 | |
parent | 4c04117de83ccfdffc34a4940404fa5de43ff89b (diff) | |
download | archivemail-eb2b4a64f924bbeadb0491e488e2651e0bb295c9.tar.gz archivemail-eb2b4a64f924bbeadb0491e488e2651e0bb295c9.tar.bz2 archivemail-eb2b4a64f924bbeadb0491e488e2651e0bb295c9.zip |
Ported "tag" rule to svn, to the extent that's easily possible.
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -2,6 +2,7 @@ VERSION=0.6.2 VERSION_TAG=v$(subst .,_,$(VERSION)) TARFILE=archivemail-$(VERSION).tar.gz +SVNROOT=https://svn.sourceforge.net/svnroot/archivemail default: @@ -28,8 +29,15 @@ bdist_rpm: clobber doc rm archivemail tag: - cvs tag -F current - cvs tag -F $(VERSION_TAG) + # Overwriting tags at least doesn't work with svn << 1.4, + # it silently creates a new subidr. It *may* work with + # svn 1.4, I haven't tested it. See svn bug #2188. + #cvs tag -F current + @if svn list "$(SVNROOT)/tags" | grep -qx "$(VERSION_TAG)/\?"; then \ + echo "Tag '$(VERSION_TAG)' already exists, aborting"; \ + else \ + svn copy . "$(SVNROOT)/tags/$(VERSION_TAG)"; \ + fi upload: (cd dist && lftp -c 'open upload.sf.net && cd incoming && put $(TARFILE)') |