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

Raymond Toy rtoy at common-lisp.net
Tue Feb 9 03:48:05 CET 2010


    Date: Monday, February 8, 2010 @ 21:48:05
  Author: rtoy
    Path: /project/cmucl/cvsroot/src/lisp
     Tag: intl-branch

Modified: Config.x86_common GNUmakefile

First cut at converting the pot to po to mo files.

Config.x86_common:
o Define vpath for locale files

GNUmakefile:
o Add translations target and rules to merge cmucl.pot with cmucl.po
  and to convert cmucl.po to cmucl.mo.  Currently only for Korean.


-------------------+
 Config.x86_common |    5 +++++
 GNUmakefile       |   13 +++++++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)


Index: src/lisp/Config.x86_common
diff -u src/lisp/Config.x86_common:1.6 src/lisp/Config.x86_common:1.6.10.1
--- src/lisp/Config.x86_common:1.6	Wed Aug 12 12:20:46 2009
+++ src/lisp/Config.x86_common	Mon Feb  8 21:48:05 2010
@@ -8,6 +8,11 @@
 vpath %.c $(PATH1)
 vpath %.S $(PATH1)
 
+CMULOCALE = ../../src/i18n/locale
+vpath %.pot $(CMULOCALE)
+vpath %.po  $(CMULOCALE)
+vpath %.mo  $(CMULOCALE)
+
 CPP_DEFINE_OPTIONS := -Di386
 
 # Enable support for :linkage-table feature.
Index: src/lisp/GNUmakefile
diff -u src/lisp/GNUmakefile:1.33 src/lisp/GNUmakefile:1.33.14.1
--- src/lisp/GNUmakefile:1.33	Mon Jan 19 23:52:47 2009
+++ src/lisp/GNUmakefile	Mon Feb  8 21:48:05 2010
@@ -1,6 +1,6 @@
-# $Header: /project/cmucl/cvsroot/src/lisp/GNUmakefile,v 1.33 2009-01-20 04:52:47 agoncharov Rel $
+# $Header: /project/cmucl/cvsroot/src/lisp/GNUmakefile,v 1.33.14.1 2010-02-09 02:48:05 rtoy Exp $
 
-all: lisp.nm
+all: lisp.nm translations
 
 -include internals.inc
 include Config
@@ -59,3 +59,12 @@
 	mv ,depends Depends
 
 -include Depends
+
+translations: ../../src/i18n/locale/ko/LC_MESSAGES/cmucl.mo
+
+%.mo : %.po
+	-msgfmt -f $^ -o $@
+
+../../src/i18n/locale/ko/LC_MESSAGES/cmucl.po : cmucl.pot
+	msgmerge $@ $^ -o $@
+



More information about the cmucl-commit mailing list