]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Tweak the update-po target.
authorBruno Haible <bruno@clisp.org>
Thu, 12 Oct 2000 21:52:31 +0000 (21:52 +0000)
committerBruno Haible <bruno@clisp.org>
Thu, 12 Oct 2000 21:52:31 +0000 (21:52 +0000)
po/ChangeLog
po/Makefile.in.in

index e2b6502aee0975753919e945a120529687f78bb8..19662ec05e61d34b576554a34110ada777950319 100644 (file)
@@ -1,3 +1,10 @@
+2000-10-12  Bruno Haible  <haible@clisp.cons.org>
+
+       * 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 <proski@gnu.org>.
+
 2000-07-28  Bruno Haible  <haible@clisp.cons.org>
 
        Simplification: In all cases where $(gnulocaledir) is used, it is
index 345f89802a07b230c32a17a0df217f63ef737bf4..3a63bfe9e8aa08edec4541d1bdef6e8fd37c706f 100644 (file)
@@ -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