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"
19 echo "Build starting at: $(date)"
21 # clean up some things.
22 \rm -rf unit-test-reports
25 ant -Dbuild.targetArch=64 build
30 echo "Build done at: $(date)"
36 function rebuild_xsede()
38 if [ -z "$GENII_INSTALL_DIR" ]; then
39 echo GENII_INSTALL_DIR is not set.
42 pushd "$GENII_INSTALL_DIR"
53 # a shortcut for doing a new build and creating a bootstrap container with it.
54 function rebu_bootstrap()
57 if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi
59 bash "$GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh"
61 echo "failed to bootstrap a container."
69 # a shortcut for building without a clean, and creating a bootstrap container with the code.
70 function bu_bootstrap()
73 if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi
75 bash "$GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh"
77 echo "failed to bootstrap a container."
85 # a shortcut for doing a quick build and then creating an installer.
86 function fast_install_build()
89 if [ $? -ne 0 ]; then echo "failed to build xsede code"; return 1; fi
91 bash "$GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh" $*
93 echo "failed to bootstrap create the installer."