minor changes in names in build_xsedes file. nice balancing act in the recustomize...
[feisty_meow.git] / customizing / fred / build_xsedes.sh
1 #!/bin/bash
2
3 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
4
5 function build_xsede()
6 {
7   pushd ~/xsede/code/fred/trunk
8   if [ $? -ne 0 ]; then return 1; fi
9   echo "Build starting at: $(date)"
10   \rm -rf unit-test-reports
11   ant -Dbuild.targetArch=64 build
12   if [ $? -ne 0 ]; then return 1; fi
13   # fix memory limits.
14 #hmmm: clean these up.
15   if [ -f runContainer.sh ]; then
16     sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.sh" 
17     chmod 755 "runContainer.sh" 
18   fi
19   if [ -f grid ]; then
20 #    sed -i -e "s/-Xmx512M/-Xmx1G/" "grid"
21     chmod 755 "grid"
22   fi
23   if [ -f runContainer.bat ]; then
24     sed -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.bat"
25     chmod 755 "runContainer.bat" 
26   fi
27   if [ -f grid.bat ]; then
28 #    sed -i -e "s/-Xmx512M/-Xmx1G/" "grid.bat"
29     chmod 755 "grid.bat"
30   fi
31   echo "Build done at: $(date)"
32   popd
33 }
34
35 function rebuild_xsede()
36 {
37   pushd ~/xsede/code/fred/trunk
38   ant clean
39   if [ $? -ne 0 ]; then return 1; fi
40   popd
41   build_xsede
42 }
43