3 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
7 if [ -z "$GENII_INSTALL_DIR" ]; then
8 echo GENII_INSTALL_DIR is not set.
11 pushd $GENII_INSTALL_DIR
12 if [ $? -ne 0 ]; then return 1; fi
13 echo "Build starting at: $(date)"
14 \rm -rf unit-test-reports
15 # # update the libs first.
17 if [ $? -ne 0 ]; then return 1; fi
18 # then build the trunk.
19 ant -Dbuild.targetArch=64 build
20 if [ $? -ne 0 ]; then return 1; fi
22 #hmmm: clean these up.
23 if [ -f runContainer.sh ]; then
24 sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.sh"
25 chmod 755 "runContainer.sh"
28 # sed -i -e "s/-Xmx512M/-Xmx1G/" "grid"
31 if [ -f runContainer.bat ]; then
32 sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.bat"
33 chmod 755 "runContainer.bat"
35 if [ -f grid.bat ]; then
36 # sed -i -e "s/-Xmx512M/-Xmx1G/" "grid.bat"
39 echo "Build done at: $(date)"
43 function rebuild_xsede()
45 if [ -z "$GENII_INSTALL_DIR" ]; then
46 echo GENII_INSTALL_DIR is not set.
49 pushd $GENII_INSTALL_DIR
51 if [ $? -ne 0 ]; then return 1; fi