From: Amos Jeffries Date: Fri, 8 Aug 2008 07:30:09 +0000 (+1200) Subject: Fix shell issue on translation output X-Git-Tag: SQUID_3_1_0_1~49^2~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32600fd11ab269c10cce191ed3b0a9329f6fac46;p=thirdparty%2Fsquid.git Fix shell issue on translation output Seems not only does sed on BSD use different regexp parameters but has a different pattern set as well. The output HTML may look nasty without cleaning but if the cleaning goes badly it can make the visual end-product look worse. In this case spurious 'n' characters around the page. Dropping the sed-based cleanup entirely in favor of usable pages. --- diff --git a/errors/Makefile.am b/errors/Makefile.am index 70e1b511c6..30ae2f88cd 100644 --- a/errors/Makefile.am +++ b/errors/Makefile.am @@ -139,8 +139,7 @@ translate: cd $$lang; \ for f in `ls -1 ../templates`; do \ echo "po2html -i ../$$lang.po -t ../templates/$$f"; \ - po2html -i ../$$lang.po -t ../templates/$$f \ - | sed -E s/\>\ \ ?\\\n\$$f || exit 1; \ + po2html -i ../$$lang.po -t ../templates/$$f >$$f || exit 1; \ done; \ cd ..; \ done