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

[or-cvs] r21909: {check} more hacking on the torcheck i18n makefile. it is still wron (check/trunk/i18n)



Author: arma
Date: 2010-03-10 11:13:20 +0000 (Wed, 10 Mar 2010)
New Revision: 21909

Modified:
   check/trunk/i18n/Makefile
Log:
more hacking on the torcheck i18n makefile. it is still wrong.


Modified: check/trunk/i18n/Makefile
===================================================================
--- check/trunk/i18n/Makefile	2010-03-10 07:53:48 UTC (rev 21908)
+++ check/trunk/i18n/Makefile	2010-03-10 11:13:20 UTC (rev 21909)
@@ -1,5 +1,4 @@
 FILES=$(wildcard pootle/*/TorCheck_*.po)
-LANG=$(FILES:TorCheck_%.po=%)
 
 #LOCALEBASE=/usr/share/locale
 LOCALEBASE=locale
@@ -12,8 +11,9 @@
 	done;
 
 build:
-	for lang in $(LANG); do			                                        \
-		msgfmt -o "TorCheck_$$lang.mo" "TorCheck_$$lang.po" || exit 1;              \
+	for file in $(FILES); do \
+		MO=$(notdir $$file) \
+		msgfmt -o "$(basename "$$MO").mo" "$$file" || exit 1;              \
 	done;
 
 install: