]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix shell issue on translation output
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Aug 2008 07:30:09 +0000 (19:30 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Aug 2008 07:30:09 +0000 (19:30 +1200)
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.

errors/Makefile.am

index 70e1b511c6ec239598d24500cb4f81493278167c..30ae2f88cd349e74495877d50039ae483080c090 100644 (file)
@@ -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\</g >$$f || exit 1; \
+                       po2html -i ../$$lang.po -t ../templates/$$f >$$f || exit 1; \
                done; \
                cd ..; \
        done