Commit fb28488d authored by Marco Mariani's avatar Marco Mariani

faster sed calls

parent dd5f76bf
......@@ -201,14 +201,14 @@ git-executable = ${git:location}/bin/git
recipe = plone.recipe.command
ZIMBRA_HOME = ${environment:ZIMBRA_HOME}
PERL_BINARY = ${perl:location}/bin/perl
stop-on-error = True
update-command = ${:command}
command =
cd ${zimbra-sources:location}
find . -name '.git' -prune -o -type f -exec sed -i "s#/opt/zimbra#${:ZIMBRA_HOME}#g" {} \;
find . -name '.git' -prune -o -type f -exec sed -i "1{s|^#!/usr/bin/perl|#!${:PERL_BINARY}|}" {} \;
find . -name '.git' -prune -o -type f -exec sed -i "s#= FS + \"opt\" + FS + \"zimbra\"#= \"${:ZIMBRA_HOME}\"#g" {} \;
update-command = ${:command}
stop-on-error = True
find . -name LocalConfig.java -exec sed -i 's#= FS + "opt" + FS + "zimbra"#= "${:ZIMBRA_HOME}"#g' {} \;
SUB1='s#/opt/zimbra#${:ZIMBRA_HOME}#g'
SUB2='1{s|^#!/usr/bin/perl|#!${:PERL_BINARY}|}'
find . -name '.git' -prune -o -type f -exec sed -i "$SUB1;$SUB2" {} \;
[zimbra-build]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment