[pLog-svn] r6763 - plog/branches/lifetype-1.2/bin-devel

oscar at devel.lifetype.net oscar at devel.lifetype.net
Mon Dec 22 11:58:11 EST 2008


Author: oscar
Date: 2008-12-22 11:58:11 -0500 (Mon, 22 Dec 2008)
New Revision: 6763

Modified:
   plog/branches/lifetype-1.2/bin-devel/build-svn.sh
Log:
export instead of checkout.  use awk instead of cut so we don't have to count the spaces

Modified: plog/branches/lifetype-1.2/bin-devel/build-svn.sh
===================================================================
--- plog/branches/lifetype-1.2/bin-devel/build-svn.sh	2008-12-22 16:46:10 UTC (rev 6762)
+++ plog/branches/lifetype-1.2/bin-devel/build-svn.sh	2008-12-22 16:58:11 UTC (rev 6763)
@@ -100,8 +100,7 @@
 
 # call the cvs command with the correct parameters
 message "Fetching the source code using $SVNTAG label..."
-REV=`svn checkout $SVNSERVER$SVNREPO $WORKDIR | tail -n 1 | cut -d ' ' -f 4 | tr -d . `
-
+REV=`svn export $SVNSERVER$SVNREPO $WORKDIR | tail -n 1 | awk '{print $NF}' | tr -d . `
 if [ $? -eq 1 ]; then
     echo "There was an error fetching the source code. Please try again."
     exit 1
@@ -139,10 +138,6 @@
 echo "\$version = \"${VERNAME}_r${REV}\";" >> $WORKDIR/version.php
 echo "?>" >> $WORKDIR/version.php
 
-# remove all the annoying CVS/ folders
-message "Removing unneeded SVN folders..."
-find $WORKDIR/ -name ".svn" -exec rm -rf '{}' \; >& /dev/null
-
 # and remove all unnecessary files
 message "Removing unnecessary files...";
 for i in $TOREMOVE



More information about the pLog-svn mailing list