From: Chris Koeritz Date: Mon, 26 Aug 2013 07:09:30 +0000 (-0400) Subject: updated to make build_xsedes a standard thing; can be run by anyone now as long X-Git-Tag: 2.140.90~941 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=5197970e64f3aab64e89a5e2346e773f8b4fa5c4;p=feisty_meow.git updated to make build_xsedes a standard thing; can be run by anyone now as long as GENII_INSTALL_DIR is set. --- diff --git a/customizing/fred/build_xsedes.sh b/customizing/fred/build_xsedes.sh deleted file mode 100644 index dd153024..00000000 --- a/customizing/fred/build_xsedes.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" - -function build_xsede() -{ - pushd ~/xsede/code/fred/trunk - if [ $? -ne 0 ]; then return 1; fi - echo "Build starting at: $(date)" - \rm -rf unit-test-reports - # update the libs first. - ant update - if [ $? -ne 0 ]; then return 1; fi - # then build the trunk. - ant -Dbuild.targetArch=64 build - if [ $? -ne 0 ]; then return 1; fi - # fix memory limits. -#hmmm: clean these up. - if [ -f runContainer.sh ]; then - sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.sh" - chmod 755 "runContainer.sh" - fi - if [ -f grid ]; then -# sed -i -e "s/-Xmx512M/-Xmx1G/" "grid" - chmod 755 "grid" - fi - if [ -f runContainer.bat ]; then - sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.bat" - chmod 755 "runContainer.bat" - fi - if [ -f grid.bat ]; then -# sed -i -e "s/-Xmx512M/-Xmx1G/" "grid.bat" - chmod 755 "grid.bat" - fi - echo "Build done at: $(date)" - popd -} - -function rebuild_xsede() -{ - pushd ~/xsede/code/fred/trunk - ant clean - if [ $? -ne 0 ]; then return 1; fi - popd - build_xsede -} - diff --git a/customizing/fred/fred_common.alias b/customizing/fred/fred_common.alias index de933714..567bfe8c 100644 --- a/customizing/fred/fred_common.alias +++ b/customizing/fred/fred_common.alias @@ -9,4 +9,6 @@ alias unmoo='umount /z/stuffing ; umount /z/walrus ; umount /z/chunky ' # cleans up the ownership for all my files. alias refred='(chown -R fred:fred /home/fred /home/games /home/archives ; normal_perm /var/log )' +# load in the xsede build scripts. +source "$FEISTY_MEOW_SCRIPTS/buildor/build_xsedes.sh" diff --git a/scripts/buildor/build_xsedes.sh b/scripts/buildor/build_xsedes.sh new file mode 100644 index 00000000..db28af00 --- /dev/null +++ b/scripts/buildor/build_xsedes.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" + +function build_xsede() +{ + if [ -z "$GENII_INSTALL_DIR" ]; then + echo GENII_INSTALL_DIR is not set. + return 1 + fi + pushd $GENII_INSTALL_DIR + if [ $? -ne 0 ]; then return 1; fi + echo "Build starting at: $(date)" + \rm -rf unit-test-reports + # update the libs first. + ant update + if [ $? -ne 0 ]; then return 1; fi + # then build the trunk. + ant -Dbuild.targetArch=64 build + if [ $? -ne 0 ]; then return 1; fi + # fix memory limits. +#hmmm: clean these up. + if [ -f runContainer.sh ]; then + sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.sh" + chmod 755 "runContainer.sh" + fi + if [ -f grid ]; then +# sed -i -e "s/-Xmx512M/-Xmx1G/" "grid" + chmod 755 "grid" + fi + if [ -f runContainer.bat ]; then + sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.bat" + chmod 755 "runContainer.bat" + fi + if [ -f grid.bat ]; then +# sed -i -e "s/-Xmx512M/-Xmx1G/" "grid.bat" + chmod 755 "grid.bat" + fi + echo "Build done at: $(date)" + popd +} + +function rebuild_xsede() +{ + if [ -z "$GENII_INSTALL_DIR" ]; then + echo GENII_INSTALL_DIR is not set. + return 1 + fi + pushd $GENII_INSTALL_DIR + ant clean + if [ $? -ne 0 ]; then return 1; fi + popd + build_xsede +} +