[pLog-svn] r1581 - plog/trunk/bin-devel

oscar at devel.plogworld.net oscar at devel.plogworld.net
Tue Mar 22 20:02:40 GMT 2005


Author: oscar
Date: 2005-03-22 20:02:40 +0000 (Tue, 22 Mar 2005)
New Revision: 1581

Modified:
   plog/trunk/bin-devel/build-svn.sh
Log:
it still wasn't working very well... 'svn st -u' had to be executed from a working copy which wasn't the case (beta packages are generated in a temporary folder) so I just moved the extraction of the revision string a few
steps earlier (and it's faster too :))


Modified: plog/trunk/bin-devel/build-svn.sh
===================================================================
--- plog/trunk/bin-devel/build-svn.sh	2005-03-22 19:53:03 UTC (rev 1580)
+++ plog/trunk/bin-devel/build-svn.sh	2005-03-22 20:02:40 UTC (rev 1581)
@@ -76,7 +76,7 @@
 
 # call the cvs command with the correct parameters
 message "Fetching the source code using $SVNTAG label..."
-svn checkout $SVNSERVER$SVNREPO -r $SVNTAG $WORKDIR
+REV=`svn checkout $SVNSERVER$SVNREPO -r $SVNTAG $WORKDIR | tail -n 1 | cut -d ' ' -f 4 | tr -d . `
 
 if [ $? -eq 1 ]; then
     echo "There was an error fetching the source code. Please try again."
@@ -104,7 +104,6 @@
 
 # finally, update the version.php file
 message "Updating the version.php file..."
-REV=`svn st -u | tail -1 | cut -d ' ' -f 6`
 echo "<?php" > $WORKDIR/version.php
 echo "\$version = \"${SVNTAG}_r${REV}\";" >> $WORKDIR/version.php
 echo "?>" >> $WORKDIR/version.php




More information about the pLog-svn mailing list