[ocrfeeder] Add LINGUAS file and use it to generate .mo files



commit e897f8376cb3134a11e90209e7b81f275415b485
Author: Joaquim Rocha <jrocha igalia com>
Date:   Wed Mar 10 12:04:39 2010 +0100

    Add LINGUAS file and use it to generate .mo files

 Makefile   |    4 ++--
 po/LINGUAS |    8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/Makefile b/Makefile
index f3121ff..2d10fa2 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ DESTDIR=/
 BUILDIR=$(CURDIR)/debian/ocrfeeder
 PROJECT=ocrfeeder
 PO_DIR=po
-PO_FILES=$(wildcard $(PO_DIR)/*.po)
+LINGUAS=$(shell cat $(PO_DIR)/LINGUAS)
 VERSION=0.6.1
 
 all:
@@ -26,7 +26,7 @@ update-po: $(PO_DIR)/$(PROJECT).pot
 	mkdir -p $$dirname; \
 	msgfmt $< -o $$dirname/$(PROJECT).mo; \
 
-generate-mo: $(patsubst %.po,%.mo,$(PO_FILES))
+generate-mo: $(patsubst %,$(PO_DIR)/%.mo,$(LINGUAS))
 
 i18n: po/$(PROJECT).pot update-po generate-mo 
 
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..02011a3
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1,8 @@
+de
+es
+fr
+gl
+it
+pt
+sv
+zh_CN
\ No newline at end of file



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]