+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
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
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