]> git.sur5r.net Git - bacula/bacula/commitdiff
Add missing file
authorKern Sibbald <kern@sibbald.com>
Thu, 28 Feb 2008 10:22:22 +0000 (10:22 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 28 Feb 2008 10:22:22 +0000 (10:22 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6506 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/update-ctest.in [new file with mode: 0644]

diff --git a/regress/scripts/update-ctest.in b/regress/scripts/update-ctest.in
new file mode 100644 (file)
index 0000000..4674b67
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+cd @regressdir@
+
+if [ -d build ] ; then
+    echo "Build directory not present, will run make setup"
+    cd @srcdir@
+    svn update > /dev/null
+    cd @regressdir@
+    make setup
+    exit
+fi
+
+cd @regressdir@/build 
+
+cur=`svn info | grep Revision: | awk '{print $2'}`
+
+cd @srcdir@
+
+svn update > /dev/null
+
+new=`svn info | grep Revision: | awk '{print $2'}`
+
+cd @regressdir@
+
+echo Build is ${cur}
+echo Source is ${new}
+
+if [ ${cur}x != ${new}x ] ; then
+    echo "Newer version available, will run make setup"
+    make setup
+else
+    echo "Latest version present in build, skipping make setup"
+fi