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 quickstarter="$GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh"
60 if [ ! -f "$quickstarter" ]; then
61 quickstarter="$XSEDE_TEST_ROOT/library/bootstrap_quick_start.sh"
66 echo "failed to bootstrap a container."
74 # a shortcut for building without a clean, and creating a bootstrap container with the code.
75 function bu_bootstrap()
78 if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi
80 quickstarter="$GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh"
81 if [ ! -f "$quickstarter" ]; then
82 quickstarter="$XSEDE_TEST_ROOT/library/bootstrap_quick_start.sh"
87 echo "failed to bootstrap a container."
95 # a shortcut for doing a quick build and then creating an installer.
96 function fast_install_build()
98 bash "$GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh" $*
100 echo "failed to create the installer."