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
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