]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/setup
update configure
[bacula/bacula] / regress / scripts / setup
index 8fd67bf739e59cdaadca61d5fc4a9fb634aeb29c..3954298fa081bb1a47d6b41f2994557b22c2a2b8 100755 (executable)
@@ -29,7 +29,7 @@ which git >/dev/null 2>/dev/null
 if [ $? = 0 ] ; then
   git show HEAD | grep -m 1 commit | awk '{print $2}' > build/git-version
 else
-  cat "Git not found." >build/git-version
+  echo "Git not found." >build/git-version
 fi
 scripts/create_sed
 # In default bacula-dir.conf.in, change default file 
@@ -50,14 +50,16 @@ rm -f Makefile config.*
 check_exit_code
 # Cleanup any build in source
 make clean
-make -j3
+make $MAKEOPT
 check_exit_code
 make install
-rm -rf examples patches
-check_exit_code
-# eliminate non-essential directories to reduce
-#   size.  Otherwise regress run too long
-rm -rf src/win32 examples patches
+if [ a$KEEP_SOURCE = a ]; then
+   rm -rf examples patches
+   check_exit_code
+   # eliminate non-essential directories to reduce
+   #   size.  Otherwise regress run too long
+   rm -rf src/win32 examples patches
+fi
 # get all tools -- especially testls
 cd src/tools
 make installall