]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/update-ctest.in
Update
[bacula/bacula] / regress / scripts / update-ctest.in
1 #!/bin/sh
2
3 cd @regressdir@
4
5 if [ ! -d build ] ; then
6     echo "Build directory not present, will run make setup"
7     cd @regressdir@
8     make setup
9     exit
10 fi
11
12 cd @regressdir@/build 
13
14 cur=`svn info | grep Revision: | awk '{print $2'}`
15
16 cd @srcdir@
17
18 new=`svn info | grep Revision: | awk '{print $2'}`
19
20 cd @regressdir@
21
22 echo Build is ${cur}
23 echo Source is ${new}
24
25 if [ ${cur}x != ${new}x ] ; then
26     echo "Newer version available, will run make setup"
27     make setup
28 else
29     echo "Latest version present in build, skipping make setup"
30 fi