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 or GFFS_TOOLKIT_ROOT is not set.";
24 pushd "$GENII_INSTALL_DIR"
30 echo "Build starting at: $(date)"
32 # clean up some things.
33 \rm -rf unit-test-reports
36 ant -Dbuild.targetArch=64 build
42 echo "Build done at: $(date)"
48 function rebuild_gffs()
52 pushd "$GENII_INSTALL_DIR"
62 # a shortcut for doing a new build and creating a bootstrap container with it.
63 function rebu_bootstrap()
67 if [ $? -ne 0 ]; then echo "failed to rebuild gffs code"; return 1; fi
69 quickstarter="$GENII_INSTALL_DIR/toolkit/library/bootstrap_quick_start.sh"
70 if [ ! -f "$quickstarter" ]; then
71 quickstarter="$GFFS_TOOLKIT_ROOT/library/bootstrap_quick_start.sh"
76 echo "failed to bootstrap a container."
84 # a shortcut for building without a clean, and creating a bootstrap container with the code.
85 function bu_bootstrap()
89 if [ $? -ne 0 ]; then echo "failed to rebuild gffs code"; return 1; fi
91 quickstarter="$GENII_INSTALL_DIR/toolkit/library/bootstrap_quick_start.sh"
92 if [ ! -f "$quickstarter" ]; then
93 quickstarter="$GFFS_TOOLKIT_ROOT/library/bootstrap_quick_start.sh"
98 echo "failed to bootstrap a container."
106 # a shortcut for doing a quick build and then creating an installer.
107 function fast_install_build()
109 eval $GFFS_CHECK_VARS
110 bash "$GFFS_TOOLKIT_ROOT/tools/installer/build_installer.sh" $* fast
111 if [ $? -ne 0 ]; then
112 echo "failed to create the installer."