CMUCL commit: intl-branch src/lisp (GNUmakefile)

Raymond Toy rtoy at common-lisp.net
Fri Feb 26 16:35:03 CET 2010


    Date: Friday, February 26, 2010 @ 10:35:03
  Author: rtoy
    Path: /project/cmucl/cvsroot/src/lisp
     Tag: intl-branch

Modified: GNUmakefile

Use a script to update the po file from the pot file and create the
corresponding mo file.


-------------+
 GNUmakefile |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)


Index: src/lisp/GNUmakefile
diff -u src/lisp/GNUmakefile:1.33.14.3 src/lisp/GNUmakefile:1.33.14.4
--- src/lisp/GNUmakefile:1.33.14.3	Fri Feb 12 17:21:23 2010
+++ src/lisp/GNUmakefile	Fri Feb 26 10:35:03 2010
@@ -1,4 +1,4 @@
-# $Header: /project/cmucl/cvsroot/src/lisp/GNUmakefile,v 1.33.14.3 2010-02-12 22:21:23 rtoy Exp $
+# $Header: /project/cmucl/cvsroot/src/lisp/GNUmakefile,v 1.33.14.4 2010-02-26 15:35:03 rtoy Exp $
 
 all: lisp.nm translations
 
@@ -69,17 +69,17 @@
 LOCALES=en at piglatin ko
 
 # Convert locale names to the appropriate path where we want the mo files to go.
-LOCALE_MO=$(patsubst %, ../i18n/locale/%/LC_MESSAGES/cmucl.mo, $(LOCALES))
+LOCALE_DIRS = $(patsubst %, i18n/locale/%/LC_MESSAGES, $(LOCALES))
 
-translations: $(LOCALE_MO)
+translations: 
+	for pot in ../../src/i18n/locale/*.pot; do \
+	  for po in $(LOCALE_DIRS); do \
+            d=`dirname $$pot`; \
+	    f=`basename $$pot .pot`; \
+	    touch ../../src/$$po/$$f.po; \
+	    msgmerge -v ../../src/$$po/$$f.po $$pot -o ../../src/$$po/$$f.po; \
+	    msgfmt -v  ../../src/$$po/$$f.po -o ../$$po/$$f.mo; \
+	  done; done
 
 .PHONY : translations
 
-# Create the mo files 
-../i18n/locale/%/LC_MESSAGES/cmucl.mo : ../../src/i18n/locale/%/LC_MESSAGES/cmucl.po
-	-msgfmt -v $^ -o $@
-
-# Update the translations with the template
-../../src/i18n/locale/%/LC_MESSAGES/cmucl.po : ../../src/i18n/locale/cmucl.pot
-	msgmerge -v $@ $^ -o $@
-



More information about the cmucl-commit mailing list