nice mod to sort the files / dirs by name before dumping them.
[feisty_meow.git] / customizing / fred / build_cak0l.sh
index 01e48e21ffa35c88ce1b7a102c3b279b8e0c3ec2..303b8fa27275f5bc794eea08735a4070591bcbe9 100644 (file)
@@ -1,10 +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
@@ -31,6 +36,7 @@ function rebuild_xsede()
 {
   pushd ~/xsede/code/cak0l/trunk
   ant clean
+  if [ $? -ne 0 ]; then return 1; fi
   popd
   build_xsede
 }