From 19dadfd59e0b0f98e720702563839a01fd3bd835 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 23 Jun 2012 17:16:16 -0400 Subject: [PATCH] whoops, had only taken off half of building thing, so scripts were getting wiped out. --- examples/custom_overrides/fred/build_cak0l.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/custom_overrides/fred/build_cak0l.sh b/examples/custom_overrides/fred/build_cak0l.sh index 796d3226..ba7bc6aa 100644 --- a/examples/custom_overrides/fred/build_cak0l.sh +++ b/examples/custom_overrides/fred/build_cak0l.sh @@ -7,27 +7,22 @@ function build_cak0l() # fix memory limits. #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 -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.sh" chmod 755 "runContainer.sh" fi if [ -f grid ]; then -# sed -e "s/-Xmx512M/-Xmx1G/" < "grid" >"$TMP/${USER}_edited.tmp" - mv "$TMP/${USER}_edited.tmp" "grid" +# sed -i -e "s/-Xmx512M/-Xmx1G/" "grid" chmod 755 "grid" - 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 -i -e "s/-Xmx512M/-Xmx2G/" "runContainer.bat" chmod 755 "runContainer.bat" fi if [ -f grid.bat ]; then -# sed -e "s/-Xmx512M/-Xmx1G/" < "grid.bat" >"$TMP/${USER}_edited.tmp" - mv "$TMP/${USER}_edited.tmp" "grid.bat" +# sed -i -e "s/-Xmx512M/-Xmx1G/" "grid.bat" chmod 755 "grid.bat" - popd fi + popd } function rebuild_cak0l() -- 2.34.1