From 5197970e64f3aab64e89a5e2346e773f8b4fa5c4 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 26 Aug 2013 03:09:30 -0400 Subject: [PATCH] updated to make build_xsedes a standard thing; can be run by anyone now as long as GENII_INSTALL_DIR is set. --- customizing/fred/fred_common.alias | 2 ++ .../fred => scripts/buildor}/build_xsedes.sh | 12 ++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) rename {customizing/fred => scripts/buildor}/build_xsedes.sh (80%) 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/customizing/fred/build_xsedes.sh b/scripts/buildor/build_xsedes.sh similarity index 80% rename from customizing/fred/build_xsedes.sh rename to scripts/buildor/build_xsedes.sh index dd153024..db28af00 100644 --- a/customizing/fred/build_xsedes.sh +++ b/scripts/buildor/build_xsedes.sh @@ -4,7 +4,11 @@ source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" function build_xsede() { - pushd ~/xsede/code/fred/trunk + 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 @@ -38,7 +42,11 @@ function build_xsede() function rebuild_xsede() { - pushd ~/xsede/code/fred/trunk + 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 -- 2.34.1