You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2007/01/17 21:03:07 UTC

svn commit: r497145 - /spamassassin/trunk/build/mkupdates/run_part2

Author: jm
Date: Wed Jan 17 12:03:06 2007
New Revision: 497145

URL: http://svn.apache.org/viewvc?view=rev&rev=497145
Log:
bug 5269: use tagging to ensure that different branches won't build updates with the same SVN revision number

Modified:
    spamassassin/trunk/build/mkupdates/run_part2

Modified: spamassassin/trunk/build/mkupdates/run_part2
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/mkupdates/run_part2?view=diff&rev=497145&r1=497144&r2=497145
==============================================================================
--- spamassassin/trunk/build/mkupdates/run_part2 (original)
+++ spamassassin/trunk/build/mkupdates/run_part2 Wed Jan 17 12:03:06 2007
@@ -124,7 +124,13 @@
 # an SVN repository with other projects, this means that the same
 # rev of *our* codebase may appear under multiple rev#s, as other projects
 # check their changes in.
-(svn info --non-interactive || svn info) < /dev/null \
+
+tagver=3.2.x
+tagstamp=`perl -e 'use POSIX qw(strftime); print strftime "%Y%m%d%H%M%S", localtime time;'`
+tagurl=https://svn.apache.org/repos/asf/spamassassin/tags/sa-update_${tagver}_${tagstamp}
+
+svn copy . $tagurl
+(svn info --non-interactive $tagurl || svn info $tagurl ) < /dev/null \
                 > $tmpdir/svn 2>&1 || exit $?
 
 svnrev=`(grep 'Last Changed Rev: ' $tmpdir/svn || exit 1) | \