You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
472 B

#!/bin/bash
setup()
{
export LC_ALL=C
MY_PATH="`dirname \"$0\"`"
MY_PATH="`( cd \"$MY_PATH\" && pwd )`"
. $MY_PATH/tim-common
}
setup
for BRANCH in $BRANCHES;
do
cd $SVN_CACHE/$BRANCH/
svn upgrade > /dev/null
svn up > /dev/null || (svn cleanup; svn up;) > /dev/null
touch $SVN_CACHE/$BRANCH.lock
tar -czf $SVN_CACHE/tmp_$BRANCH.tgz . && mv $SVN_CACHE/tmp_$BRANCH.tgz $SVN_CACHE/$BRANCH.tar.gz
/bin/rm $SVN_CACHE/$BRANCH.lock
done