From 2920dd872381b59b4484b83ec3f625fd166cafe3 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 6 Aug 2008 19:55:42 -0600 Subject: [PATCH] Fix snapshots - FreeBSD version of sed installed on squid-cache does not provide the -r option, uses -E instead - shuffles the dist target specific actions all back into dist-hook so as to not interfere or fail on manual translations runs. --- errors/Makefile.am | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/errors/Makefile.am b/errors/Makefile.am index 05f478b519..70e1b511c6 100644 --- a/errors/Makefile.am +++ b/errors/Makefile.am @@ -124,25 +124,25 @@ dist-hook: fi; \ done; \ if test "$(DO_TRANSLATE)" = "yes" ; then \ - translate; \ + make translate; \ + test -d $(distdir)/$$lang \ + || mkdir $(distdir)/$$lang \ + || exit 1; \ + cp -p $(srcdir)/$$lang/ERR_* $(distdir)/$$lang \ + || exit 1; \ fi translate: for lang in $(TRANSLATIONS); do \ test -d $$lang && rm -r $$lang; \ mkdir $$lang; \ - test -d $(distdir)/$$lang \ - || mkdir $(distdir)/$$lang \ - || exit 1; \ 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 -r s/\>\ \ ?\\\n\$$f || exit 1; \ + | sed -E s/\>\ \ ?\\\n\$$f || exit 1; \ done; \ cd ..; \ - cp -p $(srcdir)/$$lang/ERR_* $(distdir)/$$lang \ - || exit 1; \ done all: -- 2.47.3