3 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
5 #hmmm: if this works well, we can use it in lots of places.
6 alias BAIL_ON_FAIL='if [ $? -ne 0 ]; then echo "A problem occurred. $msg"; return 1; fi'
10 if [ -z "$GENII_INSTALL_DIR" ]; then
11 echo GENII_INSTALL_DIR is not set.
14 pushd $GENII_INSTALL_DIR
15 if [ $? -ne 0 ]; then return 1; fi
16 echo "Build starting at: $(date)"
18 # clean up some things.
19 \rm -rf unit-test-reports
22 ant -Dbuild.targetArch=64 build
23 if [ $? -ne 0 ]; then return 1; fi
24 echo "Build done at: $(date)"
30 function rebuild_xsede()
32 if [ -z "$GENII_INSTALL_DIR" ]; then
33 echo GENII_INSTALL_DIR is not set.
36 pushd $GENII_INSTALL_DIR
39 if [ $? -ne 0 ]; then return 1; fi
44 # a shortcut for doing a new build and creating a bootstrap container with it.
45 function rebu_bootstrap()
48 if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi
50 bash $GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh
51 if [ $? -ne 0 ]; then echo "failed to bootstrap a container"; return 1; fi
56 # a shortcut for building without a clean, and creating a bootstrap container with the code.
57 function bu_bootstrap()
60 if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi
62 bash $GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh
63 if [ $? -ne 0 ]; then echo "failed to bootstrap a container"; return 1; fi
68 # a shortcut for doing a quick build and then creating an installer.
69 function fast_install_build()
72 if [ $? -ne 0 ]; then echo "failed to build xsede code"; return 1; fi
74 bash $GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh $*
75 if [ $? -ne 0 ]; then echo "failed to create the installer."; return 1; fi