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.
20 if [ ! -d unit-test-reports ]; then
21 echo this chunk in build_xsedes could be removed to clean up unit tests
23 \rm -rf unit-test-reports
27 ant -Dbuild.targetArch=64 build
28 if [ $? -ne 0 ]; then return 1; fi
29 echo "Build done at: $(date)"
35 function rebuild_xsede()
37 if [ -z "$GENII_INSTALL_DIR" ]; then
38 echo GENII_INSTALL_DIR is not set.
41 pushd $GENII_INSTALL_DIR
43 if [ $? -ne 0 ]; then return 1; fi
48 # a shortcut for doing a new build and creating a bootstrap container with it.
49 function rebu_bootstrap()
52 if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi
54 bash $GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh
55 if [ $? -ne 0 ]; then echo "failed to bootstrap a container"; return 1; fi
60 # a shortcut for doing a quick build and then creating an installer.
61 function fast_install_build()
64 if [ $? -ne 0 ]; then echo "failed to build xsede code"; return 1; fi
66 bash $GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh $*
67 if [ $? -ne 0 ]; then echo "failed to create the installer."; return 1; fi