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
+#hmmm: clean these up.
+ if [ -f runContainer.sh ]; then
+ 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"
+ fi
+ if [ -f grid ]; then
+ mv "$TMP/${USER}_edited.tmp" "grid"
+ chmod 755 "grid" "runContainer.sh"
+ popd
+ fi
+ if [ -f runContainer.bat ]; then
+ sed -e "s/-Xmx512M/-Xmx2G/" < "runContainer.bat" >"$TMP/${USER}_edited.tmp"
+ mv "$TMP/${USER}_edited.tmp" "runContainer.bat"
+ sed -e "s/-Xmx512M/-Xmx1G/" < "grid" >"$TMP/${USER}_edited.tmp"
+ fi
+ if [ -f grid ]; then
+ mv "$TMP/${USER}_edited.tmp" "grid"
+ chmod 755 "grid" "runContainer.bat"
+ popd
+ fi
}
function rebuild_cak0l()