]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Create en@quot.po when it doesn't exist.
authorBruno Haible <bruno@clisp.org>
Fri, 16 Jan 2004 15:45:07 +0000 (15:45 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:38 +0000 (12:11 +0200)
gettext-runtime/po/ChangeLog
gettext-runtime/po/Makefile.in.in
gettext-runtime/po/Rules-quot
gettext-tools/po/ChangeLog
gettext-tools/po/Makefile.in.in
gettext-tools/po/Rules-quot

index f009b0b180c6866fc22c4dd96701cecff7a9358f..1503a505c780415144469d538865ac36b22181a8 100644 (file)
@@ -1,3 +1,11 @@
+2004-01-16  Bruno Haible  <bruno@clisp.org>
+
+       Create en@quot.po when it doesn't exist.
+       * Makefile.in.in (.SUFFIXES): Add .po-create.
+       ($(POFILES)): Invoke .po-create target when the PO file does not exist.
+       (.nop.po-create): New rule.
+       * Rules-quot (en@quot.po-create, en@boldquot.po-create): New rules.
+
 2003-12-17  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.13.1 released.
index 75c5d469a5cd5b801030550c662d8b5f57cc9f25..77c5ca03aa342b4f0a275b6abdde34a5be96192d 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for PO directory in any package using GNU gettext.
-# Copyright (C) 1995-1997, 2000-2003 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
+# Copyright (C) 1995-1997, 2000-2004 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
 #
 # This file can be copied and used freely without restrictions.  It can
 # be used in projects which are not available under the GNU General Public
@@ -57,7 +57,7 @@ CATALOGS = @CATALOGS@
 # Makevars gets inserted here. (Don't remove this line!)
 
 .SUFFIXES:
-.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
+.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
 
 .po.mo:
        @echo "$(MSGFMT) -c -o $@ $<"; \
@@ -130,10 +130,13 @@ $(srcdir)/$(DOMAIN).pot:
 # Note that a PO file is not touched if it doesn't need to be changed.
 $(POFILES): $(srcdir)/$(DOMAIN).pot
        @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
-       test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
-       echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
-       cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
-
+       if test -f "$(srcdir)/$${lang}.po"; then \
+         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+         echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
+         cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
+       else \
+         $(MAKE) $${lang}.po-create; \
+       fi
 
 install: install-exec install-data
 install-exec:
@@ -312,6 +315,13 @@ update-po: Makefile
        test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
        $(MAKE) update-gmo
 
+# General rule for creating PO files.
+
+.nop.po-create:
+       @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
+       echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
+       exit 1
+
 # General rule for updating PO files.
 
 .nop.po-update:
index 5f46d237d2593c674ab34518cf342553fe0f6aef..9c2a995e3009a099cf52764d458398716dee4df6 100644 (file)
@@ -4,6 +4,11 @@ DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.heade
 
 .SUFFIXES: .insert-header .po-update-en
 
+en@quot.po-create:
+       $(MAKE) en@quot.po-update
+en@boldquot.po-create:
+       $(MAKE) en@boldquot.po-update
+
 en@quot.po-update: en@quot.po-update-en
 en@boldquot.po-update: en@boldquot.po-update-en
 
index da356cdedd43438fb9ad831b348c068843622c18..90f70e1298a2396dbe545f19e36590f0334098ae 100644 (file)
@@ -1,3 +1,11 @@
+2004-01-16  Bruno Haible  <bruno@clisp.org>
+
+       Create en@quot.po when it doesn't exist.
+       * Makefile.in.in (.SUFFIXES): Add .po-create.
+       ($(POFILES)): Invoke .po-create target when the PO file does not exist.
+       (.nop.po-create): New rule.
+       * Rules-quot (en@quot.po-create, en@boldquot.po-create): New rules.
+
 2003-12-17  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.13.1 released.
index 75c5d469a5cd5b801030550c662d8b5f57cc9f25..6da2faea96db84392ce2d97c3e4cbc2e106f4fce 100644 (file)
@@ -57,7 +57,7 @@ CATALOGS = @CATALOGS@
 # Makevars gets inserted here. (Don't remove this line!)
 
 .SUFFIXES:
-.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
+.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
 
 .po.mo:
        @echo "$(MSGFMT) -c -o $@ $<"; \
@@ -130,10 +130,13 @@ $(srcdir)/$(DOMAIN).pot:
 # Note that a PO file is not touched if it doesn't need to be changed.
 $(POFILES): $(srcdir)/$(DOMAIN).pot
        @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
-       test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
-       echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
-       cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
-
+       if test -f "$(srcdir)/$${lang}.po"; then \
+         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
+         echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
+         cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
+       else \
+         $(MAKE) $${lang}.po-create; \
+       fi
 
 install: install-exec install-data
 install-exec:
@@ -312,6 +315,13 @@ update-po: Makefile
        test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
        $(MAKE) update-gmo
 
+# General rule for creating PO files.
+
+.nop.po-create:
+       @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
+       echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
+       exit 1
+
 # General rule for updating PO files.
 
 .nop.po-update:
index 5f46d237d2593c674ab34518cf342553fe0f6aef..9c2a995e3009a099cf52764d458398716dee4df6 100644 (file)
@@ -4,6 +4,11 @@ DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.heade
 
 .SUFFIXES: .insert-header .po-update-en
 
+en@quot.po-create:
+       $(MAKE) en@quot.po-update
+en@boldquot.po-create:
+       $(MAKE) en@boldquot.po-update
+
 en@quot.po-update: en@quot.po-update-en
 en@boldquot.po-update: en@boldquot.po-update-en