auto-update
authorthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 20 Feb 2009 22:17:42 +0000 (22:17 +0000)
committerthierry <thierry@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 20 Feb 2009 22:17:42 +0000 (22:17 +0000)
scripts/all-modules.sh

index e358b6a..7b42a80 100755 (executable)
@@ -13,6 +13,15 @@ COMMAND=$(basename $0)
 OUTPUT=/build/modules
 LOCK=/var/run/all-modules.pid
 
+function do_update() {
+    build_dir=$1; shift
+    if [ -f $build_dir/auto-update.sh ] ; then
+       $build_dir/auto-update.sh
+    else
+       pushd $build_dir; svn update > .update.log 2>&1 ; popd
+    fi
+}
+
 # usage: do_version dir name 
 function do_version () {
     build_dir=$1; shift
@@ -74,8 +83,10 @@ function main () {
     
     echo $$ > $LOCK
 
+    do_update  /root/svn-build-4.2
     do_diff    /root/svn-build-4.2 4.2 
     do_version /root/svn-build-4.2 4.2 
+    do_update  /root/svn-build
     do_diff    /root/svn-build     trunk 
     do_version /root/svn-build     trunk