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