nice mod to sort the files / dirs by name before dumping them.
[feisty_meow.git] / customizing / fred / build_cak0l.sh
index 84f11d72ff5934432fb9ae9061e038dca82a2d43..303b8fa27275f5bc794eea08735a4070591bcbe9 100644 (file)
@@ -1,9 +1,15 @@
 #!/bin/bash
 
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
+
 function build_xsede()
 {
   pushd ~/xsede/code/cak0l/trunk
+  if [ $? -ne 0 ]; then return 1; fi
+  echo "Build starting at: $(date)"
+  \rm -rf unit-test-reports
   ant -Dbuild.targetArch=64 build
+  if [ $? -ne 0 ]; then return 1; fi
   # fix memory limits.
 #hmmm: clean these up.
   if [ -f runContainer.sh ]; then
@@ -22,6 +28,7 @@ function build_xsede()
 #    sed -i -e "s/-Xmx512M/-Xmx1G/" "grid.bat"
     chmod 755 "grid.bat"
   fi
+  echo "Build done at: $(date)"
   popd
 }
 
@@ -29,6 +36,7 @@ function rebuild_xsede()
 {
   pushd ~/xsede/code/cak0l/trunk
   ant clean
+  if [ $? -ne 0 ]; then return 1; fi
   popd
   build_xsede
 }