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

[or-cvs] Build portuguese translation



Update of /home/or/cvsroot/website
In directory moria:/tmp/cvs-serv10075

Modified Files:
	Makefile.common 
Log Message:
Build portuguese translation

Index: Makefile.common
===================================================================
RCS file: /home/or/cvsroot/website/Makefile.common,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -d -r1.7 -r1.8
--- Makefile.common	9 Apr 2006 10:59:14 -0000	1.7
+++ Makefile.common	15 May 2006 09:36:09 -0000	1.8
@@ -6,7 +6,7 @@ WMLOPT  = \
           -D TORCVSHEAD=$(TORCVSHEAD)
 
 
-LANGS=de en es it fr pl se ru
+LANGS=de en es it fr pl pt se ru
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
 
@@ -34,6 +34,9 @@ all: $(HTMLFILES)
 %.html.pl: pl/%.wml en/%.wml
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
 
+%.html.pt: pt/%.wml en/%.wml
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
+
 %.html.se: se/%.wml en/%.wml
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
 
@@ -82,6 +85,13 @@ all: $(HTMLFILES)
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
 	rm -f $$tmpfile
+.deps/%.html.pt.d: pt/%.wml .deps/.stamp
+	tmpfile=`tempfile` \
+	lang=`dirname $<` && \
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
+	rm -f $$tmpfile
 .deps/%.html.se.d: se/%.wml .deps/.stamp
 	tmpfile=`tempfile` \
 	lang=`dirname $<` && \