whoops, had only taken off half of building thing, so scripts were getting wiped...
[feisty_meow.git] / examples / custom_overrides / fred / build_cak0l.sh
index 1dc3f197506b5ecc8cc4f1e9f6afba68508eda8f..ba7bc6aae9df62e90902311f5140e2d3a49526d3 100644 (file)
@@ -4,6 +4,24 @@ function build_cak0l()
 {
   pushd ~/xsede/code/cak0l/trunk
   ant -Dbuild.targetArch=64 build
+  # 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
   popd
 }