From: Amos Jeffries Date: Wed, 25 Feb 2009 04:08:59 +0000 (-0700) Subject: TestBed: fix translation errors from out-of-tree distcheck X-Git-Tag: SQUID_3_2_0_1~1161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c606c959037424a410750d5bae4c6c113d27732;p=thirdparty%2Fsquid.git TestBed: fix translation errors from out-of-tree distcheck TODO: other errors from distcheck. --- diff --git a/errors/Makefile.am b/errors/Makefile.am index a5ced76e5d..55b5578a35 100644 --- a/errors/Makefile.am +++ b/errors/Makefile.am @@ -88,7 +88,7 @@ uninstall-local: done; \ done; \ for l in $(TRANSLATIONS) templates; do \ - if test -d $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l; then \ + if test -d $(srcdir)/$$l; then \ for f in $(srcdir)/$$l/ERR_*; do \ rm -f $(DESTDIR)$(DEFAULT_ERROR_DIR)/$$l/`basename $$f`; \ done; \ @@ -148,13 +148,11 @@ translate: for lang in $(TRANSLATIONS); do \ test -d $$lang && rm -r $$lang; \ mkdir $$lang; \ - cd $$lang; \ echo -n "Translate '$$lang' ..."; \ - for f in `ls -1 ../$(srcdir)/templates`; do \ - $(PO2HTML) --progress=none -i ../$(srcdir)/$$lang.po -t ../$(srcdir)/templates/$$f >$$f || exit 1; \ + for f in `ls -1 $(srcdir)/templates`; do \ + $(PO2HTML) --progress=none -i $(srcdir)/$$lang.po -t $(srcdir)/templates/$$f >$$lang/$$f || exit 1; \ done; \ echo "done."; \ - cd ..; \ done; \ else \ if test "$(PO2HTML)" = "off" ; then \