]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/update-ctest.in
Apply patch for regress from Frank Sweester
[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=`cat git-version`
15
16 cd @srcdir@
17
18 new=`git show HEAD | grep -m 1 commit | 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