3 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
5 #hmmm: if this works well, we can use it in lots of places.
6 define_yeti_alias BAIL_ON_FAIL='if [ $? -ne 0 ]; then echo "A problem occurred. $msg"; return 1; fi'
10 bash $GFFS_TOOLKIT_ROOT/library/zap_genesis_javas.sh
13 # a macro for testing the configuration.
14 export GFFS_CHECK_VARS='
15 if [ -z "$GENII_INSTALL_DIR" -o -z "$GFFS_TOOLKIT_ROOT" ]; then
16 echo "GENII_INSTALL_DIR is not set.";
23 # if [ -z "$GENII_INSTALL_DIR" -o -z "$GFFS_TOOLKIT_ROOT" ]; then
24 # echo GENII_INSTALL_DIR is not set.
28 pushd "$GENII_INSTALL_DIR"
33 echo "Build starting at: $(date)"
35 # clean up some things.
36 \rm -rf unit-test-reports
39 ant -Dbuild.targetArch=64 build
44 echo "Build done at: $(date)"
50 function rebuild_gffs()
53 # if [ -z "$GENII_INSTALL_DIR" -o -z "$GFFS_TOOLKIT_ROOT" ]; then
54 # echo GENII_INSTALL_DIR is not set.
58 pushd "$GENII_INSTALL_DIR"
69 # a shortcut for doing a new build and creating a bootstrap container with it.
70 function rebu_bootstrap()
74 if [ $? -ne 0 ]; then echo "failed to rebuild gffs code"; return 1; fi
76 quickstarter="$GENII_INSTALL_DIR/toolkit/library/bootstrap_quick_start.sh"
77 if [ ! -f "$quickstarter" ]; then
78 quickstarter="$GFFS_TOOLKIT_ROOT/library/bootstrap_quick_start.sh"
83 echo "failed to bootstrap a container."
91 # a shortcut for building without a clean, and creating a bootstrap container with the code.
92 function bu_bootstrap()
96 if [ $? -ne 0 ]; then echo "failed to rebuild gffs code"; return 1; fi
98 quickstarter="$GENII_INSTALL_DIR/toolkit/library/bootstrap_quick_start.sh"
99 if [ ! -f "$quickstarter" ]; then
100 quickstarter="$GFFS_TOOLKIT_ROOT/library/bootstrap_quick_start.sh"
104 if [ $? -ne 0 ]; then
105 echo "failed to bootstrap a container."
113 # a shortcut for doing a quick build and then creating an installer.
114 function fast_install_build()
116 eval $GFFS_CHECK_VARS
117 bash "$GFFS_TOOLKIT_ROOT/tools/installer/fast_installer_build.sh" $*
118 if [ $? -ne 0 ]; then
119 echo "failed to create the installer."