X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fbuildor%2Fbuild_xsedes.sh;h=1996208e7549d2b257a861ac835955171f523766;hb=74a31011284b535fe13597e61095d7dd9cd11aaf;hp=659965ec7b78ec5289cb11e53867e3c9d4e2f40d;hpb=1809c04b7499a188d1c2a7df3ec588bc8591a2e3;p=feisty_meow.git diff --git a/scripts/buildor/build_xsedes.sh b/scripts/buildor/build_xsedes.sh index 659965ec..1996208e 100644 --- a/scripts/buildor/build_xsedes.sh +++ b/scripts/buildor/build_xsedes.sh @@ -12,20 +12,21 @@ function build_xsede() return 1 fi pushd $GENII_INSTALL_DIR - if [ $? -ne 0 ]; then return 1; fi + if [ $? -ne 0 ]; then + error_sound + return 1 + fi echo "Build starting at: $(date)" -# clean up some things. -#maybe not needed. -if [ ! -d unit-test-reports ]; then -echo this chunk in build_xsedes could be removed to clean up unit tests -else -\rm -rf unit-test-reports -fi + # clean up some things. + \rm -rf unit-test-reports # build the trunk. ant -Dbuild.targetArch=64 build - if [ $? -ne 0 ]; then return 1; fi + if [ $? -ne 0 ]; then + error_sound + return 1 + fi echo "Build done at: $(date)" popd @@ -40,7 +41,11 @@ function rebuild_xsede() fi pushd $GENII_INSTALL_DIR ant clean - if [ $? -ne 0 ]; then return 1; fi + + if [ $? -ne 0 ]; then + error_sound + return 1 + fi popd build_xsede } @@ -52,7 +57,27 @@ function rebu_bootstrap() if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi bash $GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh - if [ $? -ne 0 ]; then echo "failed to bootstrap a container"; return 1; fi + if [ $? -ne 0 ]; then + echo "failed to bootstrap a container." + error_sound + return 1 + fi + + success_sound +} + +# a shortcut for building without a clean, and creating a bootstrap container with the code. +function bu_bootstrap() +{ + build_xsede + if [ $? -ne 0 ]; then echo "failed to rebuild xsede code"; return 1; fi + + bash $GENII_INSTALL_DIR/xsede_tools/library/bootstrap_quick_start.sh + if [ $? -ne 0 ]; then + echo "failed to bootstrap a container." + error_sound + return 1 + fi success_sound } @@ -64,7 +89,11 @@ function fast_install_build() if [ $? -ne 0 ]; then echo "failed to build xsede code"; return 1; fi bash $GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh $* - if [ $? -ne 0 ]; then echo "failed to create the installer."; return 1; fi + if [ $? -ne 0 ]; then + echo "failed to bootstrap create the installer." + error_sound + return 1 + fi success_sound }