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

[or-cvs] r19781: {website} Attempt to add an ar directory to the website for arabic tra (website/trunk)



Author: phobos
Date: 2009-06-23 00:02:51 -0400 (Tue, 23 Jun 2009)
New Revision: 19781

Added:
   website/trunk/ar/
Modified:
   website/trunk/Makefile.common
Log:
Attempt to add an ar directory to the website for arabic translations.


Modified: website/trunk/Makefile.common
===================================================================
--- website/trunk/Makefile.common	2009-06-23 03:38:01 UTC (rev 19780)
+++ website/trunk/Makefile.common	2009-06-23 04:02:51 UTC (rev 19781)
@@ -16,7 +16,7 @@
           -D TORSVNSTABLE=$(TORSVNSTABLE) \
           -D TORSVNHEAD=$(TORSVNHEAD)
 
-LANGS=de en es it fi fr ja ko nl no pl pt ru se tr zh-cn fa
+LANGS=de en es it fi fr ja ko nl no pl pt ru se tr zh-cn fa ar
 
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
@@ -30,6 +30,9 @@
 %.html.en: en/%.wml
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
 
+%.html.ar: ar/%.wml en/%.wml
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
+
 %.html.es: es/%.wml en/%.wml
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
 
@@ -85,6 +88,13 @@
 	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.ar.d: es/%.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.es.d: es/%.wml .deps/.stamp
 	tmpfile=`tempfile` \
 	lang=`dirname $<` && \