X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fbuildor%2Fbuild_xsedes.sh;h=e335651bbd00d682b2c943da690b07596e106db3;hb=6ed6b13a3a3806c0f4dcb38ac145f6a295faa2fb;hp=806d8ad7e8ac338584d01ab18e23d0bf725cb88f;hpb=3f3cf94b1558bd793e5b827a4ae5596ff30a53cf;p=feisty_meow.git diff --git a/scripts/buildor/build_xsedes.sh b/scripts/buildor/build_xsedes.sh index 806d8ad7..e335651b 100644 --- a/scripts/buildor/build_xsedes.sh +++ b/scripts/buildor/build_xsedes.sh @@ -11,8 +11,11 @@ function build_xsede() echo GENII_INSTALL_DIR is not set. return 1 fi - pushd $GENII_INSTALL_DIR - if [ $? -ne 0 ]; then return 1; fi + pushd "$GENII_INSTALL_DIR" + if [ $? -ne 0 ]; then + error_sound + return 1 + fi echo "Build starting at: $(date)" # clean up some things. @@ -20,7 +23,10 @@ function build_xsede() # 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 @@ -33,10 +39,13 @@ function rebuild_xsede() echo GENII_INSTALL_DIR is not set. return 1 fi - pushd $GENII_INSTALL_DIR + 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 } @@ -47,8 +56,12 @@ function rebu_bootstrap() rebuild_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"; 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 } @@ -59,8 +72,12 @@ 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"; 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 } @@ -71,8 +88,12 @@ function fast_install_build() build_xsede 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 + bash "$GENII_INSTALL_DIR/xsede_tools/tools/installer/fast_installer_build.sh" $* + if [ $? -ne 0 ]; then + echo "failed to bootstrap create the installer." + error_sound + return 1 + fi success_sound }