r2482 - people/goneri/update-pkg-games
Eddy Petrisor
eddyp-guest at alioth.debian.org
Wed Mar 7 21:34:59 CET 2007
Author: eddyp-guest
Date: 2007-03-07 20:34:59 +0000 (Wed, 07 Mar 2007)
New Revision: 2482
Modified:
people/goneri/update-pkg-games/update_pkg.sh
Log:
add some support for externals; not great, but it should work for simple stuff
Modified: people/goneri/update-pkg-games/update_pkg.sh
===================================================================
--- people/goneri/update-pkg-games/update_pkg.sh 2007-03-07 20:13:26 UTC (rev 2481)
+++ people/goneri/update-pkg-games/update_pkg.sh 2007-03-07 20:34:59 UTC (rev 2482)
@@ -14,13 +14,19 @@
mkdir -p $TMPDIR || exit 1
cd $TMPDIR
-tmp=$(svn co $SVN/$pkgname|grep -v "Checked out revision")
-if [ "$tmp" = "" ] && [ $FORCE_BUILD -eq 0 ] && [ ! -f $HTTPLOG/$pkgname/force_rebuild ] && [ "$(find $HTTPLOG/$pkgname/ -name build.log ! -ctime -5)" = "" ];
+if [ "$USEEXTERNALS" ]
then
+ tmp=$(svn co $SVN| sort -u|grep -v "Checked out revision|external|^$")
+else
+ tmp=$(svn co $SVN/$pkgname|grep -v "Checked out revision")
+fi
+if [ -z "$tmp" ] && [ $FORCE_BUILD -eq 0 ] && [ ! -f $HTTPLOG/$pkgname/force_rebuild ] && [ "$(find $HTTPLOG/$pkgname/ -name build.log ! -ctime -5)" = "" ];
+then
echo "No need to rebuild."
exit 0
fi
+[ "$USEEXTERNALS" ] && cd $(basename $SVN)
cd $pkgname
export LANG="C"
More information about the Pkg-games-commits
mailing list