u
authorChris Koeritz <fred@gruntose.com>
Fri, 13 Apr 2012 18:42:41 +0000 (14:42 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 13 Apr 2012 18:42:41 +0000 (14:42 -0400)
examples/custom_overrides/fred/build_cak0l.sh

index 1dc3f197506b5ecc8cc4f1e9f6afba68508eda8f..b1a484d3d277bf588c458ffd39a6808b3d5e29f3 100644 (file)
@@ -4,6 +4,12 @@ function build_cak0l()
 {
   pushd ~/xsede/code/cak0l/trunk
   ant -Dbuild.targetArch=64 build
+  # fix memory limits.
+  sed -e "s/-Xmx512M/-Xmx2G/" < "runContainer.sh" >"$TMP/${USER}_edited.tmp"
+  mv "$TMP/${USER}_edited.tmp" "runContainer.sh" 
+  sed -e "s/-Xmx512M/-Xmx1G/" < "grid" >"$TMP/${USER}_edited.tmp"
+  mv "$TMP/${USER}_edited.tmp" "grid" 
+  chmod 755 "grid" "runContainer.sh" 
   popd
 }