]> git.sur5r.net Git - bacula/bacula/blob - regress/scripts/update-ctest.in
regress: Add mssql functions to regress-win32.pl
[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 touch git-version
15 cur=`cat git-version`
16
17 cd @srcdir@
18
19 new=`git show HEAD | grep -m 1 commit | awk '{print $2}'`
20
21 cd @regressdir@
22
23 echo Build is ${cur}
24 echo Source is ${new}
25
26 if [ ${cur}x != ${new}x ] ; then
27     echo "Newer version available, will run make setup"
28     git pull
29     make setup
30 else
31     echo "Latest version present in build, skipping make setup"
32 fi