From: Bruno Haible Date: Thu, 12 Oct 2000 21:52:31 +0000 (+0000) Subject: Tweak the update-po target. X-Git-Tag: v0.10.36~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=852bbc895a36cd38cfe6334d7e494484d9e58a8e;p=thirdparty%2Fgettext.git Tweak the update-po target. --- diff --git a/po/ChangeLog b/po/ChangeLog index e2b6502ae..19662ec05 100644 --- a/po/ChangeLog +++ b/po/ChangeLog @@ -1,3 +1,10 @@ +2000-10-12 Bruno Haible + + * Makefile.in.in (update-po): Don't move the old po file away until + the new one has been successfully generated. + (mostlyclean): Update. + Suggested by Pavel Roskin . + 2000-07-28 Bruno Haible Simplification: In all cases where $(gnulocaledir) is used, it is diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 345f89802..3a63bfe9e 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -174,7 +174,7 @@ cat-id-tbl.o: $(top_srcdir)/intl/libgettext.h dvi info tags TAGS ID: mostlyclean: - rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp + rm -f core core.* *.pox $(PACKAGE).po *.new.po cat-id-tbl.tmp rm -fr *.o clean: mostlyclean @@ -204,14 +204,12 @@ update-po: Makefile for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ - mv $$lang.po $$lang.old.po; \ echo "$$lang:"; \ - if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \ - rm -f $$lang.old.po; \ + if $(MSGMERGE) $$lang.po $(PACKAGE).pot -o $$lang.new.po; then \ + mv -f $$lang.new.po $$lang.po; \ else \ echo "msgmerge for $$cat failed!"; \ - rm -f $$lang.po; \ - mv $$lang.old.po $$lang.po; \ + rm -f $$lang.new.po; \ fi; \ done