[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/po Makefile.in.in
From: |
Yann Dirson |
Subject: |
[Wesnoth-cvs-commits] wesnoth/po Makefile.in.in |
Date: |
Sun, 14 Nov 2004 17:32:29 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Yann Dirson <address@hidden> 04/11/14 22:26:36
Modified files:
po : Makefile.in.in
Log message:
Do not run msgcat unless necessary
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/po/Makefile.in.in.diff?tr1=1.21&tr2=1.22&r1=text&r2=text
Patches:
Index: wesnoth/po/Makefile.in.in
diff -u wesnoth/po/Makefile.in.in:1.21 wesnoth/po/Makefile.in.in:1.22
--- wesnoth/po/Makefile.in.in:1.21 Mon Nov 8 22:50:41 2004
+++ wesnoth/po/Makefile.in.in Sun Nov 14 22:26:36 2004
@@ -113,17 +113,22 @@
--copyright-holder='$(COPYRIGHT_HOLDER)' \
--msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \
--keyword=_ --keyword=N_ \
- --output=- | sed s/charset=CHARSET/charset=UTF-8/ > $(DOMAIN).cpp.po
+ --output=$(DOMAIN).cpp.po
+ if test -f $(DOMAIN).cpp.po ; then \
+ sed s/charset=CHARSET/charset=UTF-8/ $(DOMAIN).cpp.po >
$(DOMAIN).cpp1.po ;\
+ fi
if test -r $(srcdir)/FINDCFG ;\
then ${WMLXGETTEXT} --directory=$(top_srcdir) \
`cd $(top_srcdir) && sh $(subdir)/FINDCFG` > $(DOMAIN).wml.po ;\
fi
- if test -f $(DOMAIN).wml.po ; then \
- msgcat --sort-by-file $(DOMAIN).cpp.po $(DOMAIN).wml.po -o
$(DOMAIN).po && \
- rm -f $(DOMAIN).cpp.po $(DOMAIN).wml.po; \
+ if test -f $(DOMAIN).wml.po -a -f $(DOMAIN).cpp1.po ; then \
+ msgcat --sort-by-file $(DOMAIN).cpp1.po $(DOMAIN).wml.po -o
$(DOMAIN).po ;\
+ elif test -f $(DOMAIN).wml.po ; then \
+ mv $(DOMAIN).wml.po $(DOMAIN).po ;\
else \
- mv $(DOMAIN).cpp.po $(DOMAIN).po ;\
+ mv $(DOMAIN).cpp1.po $(DOMAIN).po ;\
fi
+ rm -f $(DOMAIN).cpp.po $(DOMAIN).cpp1.po $(DOMAIN).wml.po
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot >
$(DOMAIN).1po && \