Browse code

Add language translation for download page

hiromipaw authored on16/11/2017 18:36:29
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
21
-LANGS=en
21
+LANGS=en es
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

Revert "Test localization"

This reverts commit 11776a41aa5d3c6a84083b667f5cb5f1e4bc4100.

hiromipaw authored on15/11/2017 17:28:45
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
21
-LANGS=en es
21
+LANGS=en
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

Test localization

hiromipaw authored on08/11/2017 19:39:50
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
21
-LANGS=en
21
+LANGS=en es
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

Escaping equals sign in viewport

hiromipaw authored on24/08/2017 16:16:17
Showing1 changed files
... ...
@@ -26,7 +26,6 @@ WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
26 26
 HTMLFILES=$(shell perl -le 's,  (.*)/(.*).wml  ,        $$2.html.$$1    ,x, print $$_ for @ARGV' $(WMLFILES))
27 27
 DEPFILES=$(shell perl -le 's,  (.*)/(.*).wml  ,  .deps/$$2.html.$$1.d  ,x, print $$_ for @ARGV' $(WMLFILES))
28 28
 
29
-
30 29
 all: $(HTMLFILES)
31 30
 
32 31
 %.html.en: en/%.wml
Browse code

only build English website files, please

Runa A. Sandvik authored on28/09/2011 12:12:28
Showing1 changed files
... ...
@@ -17,8 +17,8 @@ WMLOPT  = \
17 17
           -D DEVTAG=$(DEVTAG) \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20
-#LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=ar bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
20
+#LANGS=ar bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
21
+LANGS=en
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

make make clean delete stray html and .dep files

we had left them alone if they didn't have a parent wml file, which
meant we left behind old translations of pages that no longer have a
large enough fraction of translated strings.

fixes bug 4000.

Roger Dingledine authored on12/09/2011 11:51:43
Showing1 changed files
... ...
@@ -305,7 +305,7 @@ all: $(HTMLFILES)
305 305
 
306 306
 dep: $(DEPFILES)
307 307
 clean:
308
-	rm -f $(HTMLFILES) $(DEPFILES)
308
+	rm -f *.html.* .deps/*.html.*.d
309 309
 	for sub in $(SUBDIRS); do \
310 310
 		$(MAKE) -C "$$sub" WMLBASE=../$(WMLBASE) clean; \
311 311
 	done
Browse code

we do not need ar-se

Runa A. Sandvik authored on10/09/2011 18:53:44
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=ar ar-se bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
21
+LANGS=ar bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -35,9 +35,6 @@ all: $(HTMLFILES)
35 35
 %.html.ar: ar/%.wml en/%.wml
36 36
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
37 37
 
38
-%.html.ar-se: ar-se/%.wml en/%.wml
39
-	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
40
-
41 38
 %.html.bms: bms/%.wml en/%.wml
42 39
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
43 40
 
... ...
@@ -127,13 +124,6 @@ all: $(HTMLFILES)
127 124
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
128 125
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
129 126
 	rm -f $$tmpfile
130
-.deps/%.html.ar-se.d: ar-se/%.wml .deps/.stamp
131
-	tmpfile=`mktemp -t tmp.XXXXXXX` \
132
-	lang=`dirname $<` && \
133
-	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
134
-	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
135
-	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
136
-	rm -f $$tmpfile
137 127
 .deps/%.html.bms.d: bms/%.wml .deps/.stamp
138 128
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
139 129
 	lang=`dirname $<` && \
Browse code

include more languages when building the website

Runa A. Sandvik authored on21/07/2011 17:12:53
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt pt-br id nl
21
+LANGS=ar ar-se bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -35,9 +35,15 @@ all: $(HTMLFILES)
35 35
 %.html.ar: ar/%.wml en/%.wml
36 36
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
37 37
 
38
+%.html.ar-se: ar-se/%.wml en/%.wml
39
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
40
+
38 41
 %.html.bms: bms/%.wml en/%.wml
39 42
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
40 43
 
44
+%.html.cy: cy/%.wml en/%.wml
45
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
46
+
41 47
 %.html.es: es/%.wml en/%.wml
42 48
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
43 49
 
... ...
@@ -65,6 +71,9 @@ all: $(HTMLFILES)
65 71
 %.html.fr: fr/%.wml en/%.wml
66 72
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
67 73
 
74
+%.html.hu: hu/%.wml en/%.wml
75
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
76
+
68 77
 %.html.ja: ja/%.wml en/%.wml
69 78
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
70 79
 
... ...
@@ -98,6 +107,9 @@ all: $(HTMLFILES)
98 107
 %.html.vi: vi/%.wml en/%.wml
99 108
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
100 109
 
110
+%.html.vn: vn/%.wml en/%.wml
111
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
112
+
101 113
 %.html.zh-cn: zh-cn/%.wml en/%.wml
102 114
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
103 115
 
... ...
@@ -115,6 +127,13 @@ all: $(HTMLFILES)
115 127
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
116 128
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
117 129
 	rm -f $$tmpfile
130
+.deps/%.html.ar-se.d: ar-se/%.wml .deps/.stamp
131
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
132
+	lang=`dirname $<` && \
133
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
134
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
135
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
136
+	rm -f $$tmpfile
118 137
 .deps/%.html.bms.d: bms/%.wml .deps/.stamp
119 138
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
120 139
 	lang=`dirname $<` && \
... ...
@@ -192,6 +211,13 @@ all: $(HTMLFILES)
192 211
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
193 212
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
194 213
 	rm -f $$tmpfile
214
+.deps/%.html.hu.d: hu/%.wml .deps/.stamp
215
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
216
+	lang=`dirname $<` && \
217
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
218
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
219
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
220
+	rm -f $$tmpfile
195 221
 .deps/%.html.ja.d: ja/%.wml .deps/.stamp
196 222
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
197 223
 	lang=`dirname $<` && \
... ...
@@ -269,6 +295,13 @@ all: $(HTMLFILES)
269 295
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
270 296
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
271 297
 	rm -f $$tmpfile
298
+.deps/%.html.vn.d: vn/%.wml .deps/.stamp
299
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
300
+	lang=`dirname $<` && \
301
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
302
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
303
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
304
+	rm -f $$tmpfile
272 305
 .deps/%.html.zh-cn.d: zh-cn/%.wml .deps/.stamp
273 306
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
274 307
 	lang=`dirname $<` && \
Browse code

revert my changes so that the website builds again

Runa A. Sandvik authored on21/07/2011 12:00:37
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar ar-sa es fr hu ru pl da it fa de fi vn cy zh-cn pt pt-br id nl
21
+LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt pt-br id nl
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -35,9 +35,6 @@ all: $(HTMLFILES)
35 35
 %.html.ar: ar/%.wml en/%.wml
36 36
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
37 37
 
38
-%.html.ar-sa: ar-sa/%.wml en/%.wml
39
-        lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
40
-
41 38
 %.html.bms: bms/%.wml en/%.wml
42 39
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
43 40
 
... ...
@@ -56,9 +53,6 @@ all: $(HTMLFILES)
56 53
 %.html.fa: fa/%.wml en/%.wml
57 54
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
58 55
 
59
-%.html.hu: hu/%.wml en/%.wml
60
-        lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
61
-
62 56
 %.html.id: id/%.wml en/%.wml
63 57
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
64 58
 
... ...
@@ -121,13 +115,6 @@ all: $(HTMLFILES)
121 115
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
122 116
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
123 117
 	rm -f $$tmpfile
124
-.deps/%.html.ar-sa.d: ar-sa/%.wml .deps/.stamp
125
-        tmpfile=`mktemp -t tmp.XXXXXXX` \
126
-        lang=`dirname $<` && \
127
-        OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
128
-        wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
129
-        sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
130
-        rm -f $$tmpfile
131 118
 .deps/%.html.bms.d: bms/%.wml .deps/.stamp
132 119
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
133 120
 	lang=`dirname $<` && \
... ...
@@ -205,13 +192,6 @@ all: $(HTMLFILES)
205 192
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
206 193
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
207 194
 	rm -f $$tmpfile
208
-.deps/%.html.hu.d: hu/%.wml .deps/.stamp
209
-        tmpfile=`mktemp -t tmp.XXXXXXX` \
210
-        lang=`dirname $<` && \
211
-        OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
212
-        wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
213
-        sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
214
-        rm -f $$tmpfile
215 195
 .deps/%.html.ja.d: ja/%.wml .deps/.stamp
216 196
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
217 197
 	lang=`dirname $<` && \
Browse code

new languages for the website, updated translations

Runa A. Sandvik authored on21/07/2011 10:48:17
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt pt-br id nl
21
+LANGS=en ar ar-sa es fr hu ru pl da it fa de fi vn cy zh-cn pt pt-br id nl
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -35,6 +35,9 @@ all: $(HTMLFILES)
35 35
 %.html.ar: ar/%.wml en/%.wml
36 36
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
37 37
 
38
+%.html.ar-sa: ar-sa/%.wml en/%.wml
39
+        lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
40
+
38 41
 %.html.bms: bms/%.wml en/%.wml
39 42
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
40 43
 
... ...
@@ -53,6 +56,9 @@ all: $(HTMLFILES)
53 56
 %.html.fa: fa/%.wml en/%.wml
54 57
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
55 58
 
59
+%.html.hu: hu/%.wml en/%.wml
60
+        lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
61
+
56 62
 %.html.id: id/%.wml en/%.wml
57 63
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
58 64
 
... ...
@@ -115,6 +121,13 @@ all: $(HTMLFILES)
115 121
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
116 122
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
117 123
 	rm -f $$tmpfile
124
+.deps/%.html.ar-sa.d: ar-sa/%.wml .deps/.stamp
125
+        tmpfile=`mktemp -t tmp.XXXXXXX` \
126
+        lang=`dirname $<` && \
127
+        OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
128
+        wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
129
+        sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
130
+        rm -f $$tmpfile
118 131
 .deps/%.html.bms.d: bms/%.wml .deps/.stamp
119 132
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
120 133
 	lang=`dirname $<` && \
... ...
@@ -192,6 +205,13 @@ all: $(HTMLFILES)
192 205
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
193 206
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
194 207
 	rm -f $$tmpfile
208
+.deps/%.html.hu.d: hu/%.wml .deps/.stamp
209
+        tmpfile=`mktemp -t tmp.XXXXXXX` \
210
+        lang=`dirname $<` && \
211
+        OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
212
+        wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
213
+        sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
214
+        rm -f $$tmpfile
195 215
 .deps/%.html.ja.d: ja/%.wml .deps/.stamp
196 216
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
197 217
 	lang=`dirname $<` && \
Browse code

updated Makefile.common to include pt-br when building the website

Runa A. Sandvik authored on14/07/2011 09:31:20
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt id nl
21
+LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt pt-br id nl
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -83,6 +83,9 @@ all: $(HTMLFILES)
83 83
 %.html.pt: pt/%.wml en/%.wml
84 84
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
85 85
 
86
+%.html.pt-br: pt-br/%.wml en/%.wml
87
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
88
+
86 89
 %.html.ru: ru/%.wml en/%.wml
87 90
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
88 91
 
... ...
@@ -231,6 +234,13 @@ all: $(HTMLFILES)
231 234
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
232 235
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
233 236
 	rm -f $$tmpfile
237
+.deps/%.html.pt-br.d: pt-br/%.wml .deps/.stamp
238
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
239
+	lang=`dirname $<` && \
240
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
241
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
242
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
243
+	rm -f $$tmpfile
234 244
 .deps/%.html.ru.d: ru/%.wml .deps/.stamp
235 245
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
236 246
 	lang=`dirname $<` && \
Browse code

revert the changes, need some more fixing

Runa A. Sandvik authored on13/07/2011 21:33:51
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt pt_BR id nl
21
+LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt id nl
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -231,13 +231,6 @@ all: $(HTMLFILES)
231 231
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
232 232
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
233 233
 	rm -f $$tmpfile
234
-.deps/%.html.pt.d: pt/%.wml .deps/.stamp
235
-	tmpfile=`mktemp -t tmp.XXXXXXX` \
236
-	lang=`dirname $<` && \
237
-	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
238
-	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
239
-	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
240
-	rm -f $$tmpfile
241 234
 .deps/%.html.ru.d: ru/%.wml .deps/.stamp
242 235
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
243 236
 	lang=`dirname $<` && \
Browse code

update Makefile.common to include pt_BR

Runa A. Sandvik authored on13/07/2011 21:31:06
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt id nl
21
+LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt pt_BR id nl
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -231,6 +231,13 @@ all: $(HTMLFILES)
231 231
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
232 232
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
233 233
 	rm -f $$tmpfile
234
+.deps/%.html.pt.d: pt/%.wml .deps/.stamp
235
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
236
+	lang=`dirname $<` && \
237
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
238
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
239
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
240
+	rm -f $$tmpfile
234 241
 .deps/%.html.ru.d: ru/%.wml .deps/.stamp
235 242
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
236 243
 	lang=`dirname $<` && \
Browse code

new and updated translations for the website as wml, new languages added to Makefile.common

Runa A. Sandvik authored on08/07/2011 11:26:23
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it fa de fi vn cy
21
+LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt id nl
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -53,6 +53,9 @@ all: $(HTMLFILES)
53 53
 %.html.fa: fa/%.wml en/%.wml
54 54
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
55 55
 
56
+%.html.id: id/%.wml en/%.wml
57
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
58
+
56 59
 %.html.it: it/%.wml en/%.wml
57 60
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
58 61
 
... ...
@@ -151,6 +154,13 @@ all: $(HTMLFILES)
151 154
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
152 155
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
153 156
 	rm -f $$tmpfile
157
+.deps/%.html.id.d: it/%.wml .deps/.stamp
158
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
159
+	lang=`dirname $<` && \
160
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
161
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
162
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
163
+	rm -f $$tmpfile
154 164
 .deps/%.html.it.d: it/%.wml .deps/.stamp
155 165
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
156 166
 	lang=`dirname $<` && \
Browse code

new and updated translations for the website, added new languages to the Makefile

Runa A. Sandvik authored on23/05/2011 21:52:20
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it fa de
21
+LANGS=en ar es fr ru pl da it fa de fi vn cy
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -89,6 +89,9 @@ all: $(HTMLFILES)
89 89
 %.html.tr: tr/%.wml en/%.wml
90 90
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
91 91
 
92
+%.html.vi: vi/%.wml en/%.wml
93
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
94
+
92 95
 %.html.zh-cn: zh-cn/%.wml en/%.wml
93 96
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
94 97
 
... ...
@@ -113,6 +116,13 @@ all: $(HTMLFILES)
113 116
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
114 117
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
115 118
 	rm -f $$tmpfile
119
+.deps/%.html.cy.d: cy/%.wml .deps/.stamp
120
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
121
+	lang=`dirname $<` && \
122
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
123
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
124
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
125
+	rm -f $$tmpfile
116 126
 .deps/%.html.es.d: es/%.wml .deps/.stamp
117 127
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
118 128
 	lang=`dirname $<` && \
... ...
@@ -232,6 +242,13 @@ all: $(HTMLFILES)
232 242
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
233 243
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
234 244
 	rm -f $$tmpfile
245
+.deps/%.html.vi.d: vi/%.wml .deps/.stamp
246
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
247
+	lang=`dirname $<` && \
248
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
249
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
250
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
251
+	rm -f $$tmpfile
235 252
 .deps/%.html.zh-cn.d: zh-cn/%.wml .deps/.stamp
236 253
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
237 254
 	lang=`dirname $<` && \
Browse code

include languages fa and de

Runa A. Sandvik authored on12/04/2011 20:00:11
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru pl da it
21
+LANGS=en ar es fr ru pl da it fa de
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

include more languages

Runa A. Sandvik authored on27/03/2011 20:22:36
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru
21
+LANGS=en ar es fr ru pl da it
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -47,6 +47,9 @@ all: $(HTMLFILES)
47 47
 %.html.de: de/%.wml en/%.wml
48 48
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
49 49
 
50
+%.html.da: da/%.wml en/%.wml
51
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
52
+
50 53
 %.html.fa: fa/%.wml en/%.wml
51 54
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
52 55
 
... ...
@@ -131,6 +134,13 @@ all: $(HTMLFILES)
131 134
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
132 135
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
133 136
 	rm -f $$tmpfile
137
+.deps/%.html.da.d: da/%.wml .deps/.stamp
138
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
139
+	lang=`dirname $<` && \
140
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
141
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
142
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
143
+	rm -f $$tmpfile
134 144
 .deps/%.html.it.d: it/%.wml .deps/.stamp
135 145
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
136 146
 	lang=`dirname $<` && \
Browse code

make (broken) arabic pages, so when phobos repushes the website he won't erase about/overview.html.ar

Roger Dingledine authored on13/03/2011 20:11:09
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en es fr ru
21
+LANGS=en ar es fr ru
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

enable spanish and russian, since they build currently

Roger Dingledine authored on11/03/2011 23:26:38
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en fr
21
+LANGS=en es fr ru
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

now the french translation builds

Roger Dingledine authored on09/03/2011 19:06:27
Showing1 changed files
... ...
@@ -17,8 +17,8 @@ WMLOPT  = \
17 17
           -D DEVTAG=$(DEVTAG) \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20
-LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-#LANGS=en
20
+#LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
+LANGS=en fr
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

minor fix

Runa A. Sandvik authored on09/03/2011 18:55:38
Showing1 changed files
... ...
@@ -17,8 +17,8 @@ WMLOPT  = \
17 17
           -D DEVTAG=$(DEVTAG) \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20
-#LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en
20
+LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
+#LANGS=en
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -96,7 +96,7 @@ all: $(HTMLFILES)
96 96
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
97 97
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
98 98
 	rm -f $$tmpfile
99
-.deps/%.html.ar.d: es/%.wml .deps/.stamp
99
+.deps/%.html.ar.d: ar/%.wml .deps/.stamp
100 100
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
101 101
 	lang=`dirname $<` && \
102 102
 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Browse code

build the website with only english files for now

Runa A. Sandvik authored on09/03/2011 16:51:10
Showing1 changed files
... ...
@@ -17,8 +17,8 @@ WMLOPT  = \
17 17
           -D DEVTAG=$(DEVTAG) \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20
-LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-#LANGS=en
20
+#LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
+LANGS=en
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

updated the makefile to include translations and copied wmi files to various language directories

Runa A. Sandvik authored on09/03/2011 14:06:44
Showing1 changed files
... ...
@@ -17,8 +17,8 @@ WMLOPT  = \
17 17
           -D DEVTAG=$(DEVTAG) \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20
-#LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en
20
+LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
+#LANGS=en
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

Update the Makefile

now that we feed both stable and dev website from the same git
repository there's no need to provide a second path for it

Sebastian Hahn authored on10/10/2010 03:19:11
Showing1 changed files
... ...
@@ -13,7 +13,6 @@ WMLOPT  = \
13 13
           -I $(WMLBASE)/include \
14 14
           -D DOCROOT=$(WMLBASE) \
15 15
           -D IMGROOT=$(WMLBASE)/images \
16
-          -D TORSVNSTABLE=$(TORSVNSTABLE) \
17 16
           -D TORGIT=$(TORGIT)\
18 17
           -D DEVTAG=$(DEVTAG) \
19 18
           -D STABLETAG=$(STABLETAG)
Browse code

fix up variables and spaces.

Andrew Lewman authored on16/08/2010 20:18:15
Showing1 changed files
... ...
@@ -24,8 +24,8 @@ LANGS=en
24 24
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
25 25
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
26 26
 
27
-HTMLFILES = $(shell perl -le 's,  (.*)/(.*).wml  ,        $$2.html.$$1    ,x, print $$_ for @ARGV' $(WMLFILES))
28
-DEPFILES  = $(shell perl -le 's,  (.*)/(.*).wml  ,  .deps/$$2.html.$$1.d  ,x, print $$_ for @ARGV' $(WMLFILES))
27
+HTMLFILES=$(shell perl -le 's,  (.*)/(.*).wml  ,        $$2.html.$$1    ,x, print $$_ for @ARGV' $(WMLFILES))
28
+DEPFILES=$(shell perl -le 's,  (.*)/(.*).wml  ,  .deps/$$2.html.$$1.d  ,x, print $$_ for @ARGV' $(WMLFILES))
29 29
 
30 30
 
31 31
 all: $(HTMLFILES)
Browse code

switch to just en

Andrew Lewman authored on12/08/2010 18:15:48
Showing1 changed files
... ...
@@ -18,8 +18,8 @@ WMLOPT  = \
18 18
           -D DEVTAG=$(DEVTAG) \
19 19
           -D STABLETAG=$(STABLETAG)
20 20
 
21
-LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
22
-#LANGS=en
21
+#LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
22
+LANGS=en
23 23
 
24 24
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
25 25
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
Browse code

first cut of the new, shiny tor website as wml.

Andrew Lewman authored on09/07/2010 03:55:22
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,244 @@
1
+# Directions for adding a new language:
2
+# 1. Add the two-letter code to LANGS below.
3
+# 2. Add a new "%.html.es: es/%.wml en/%.wml" clause below.
4
+# 3. Add a new ".deps/%.html.es.d: es/%.wml .deps/.stamp" clause below.
5
+# 4. mkdir a new two-letter directory. Make sure there's a foot.wmi
6
+#    and navigation.wmi.
7
+# 5. Edit include/perl-globals.wmi, add to @LANGUAGES and %LANGUAGES.
8
+#    You might find useful %LANGUAGES strings at the bottom of
9
+#    http://debian.org/
10
+# 6. Add a new images/es.png flag image.
11
+
12
+WMLOPT  = \
13
+          -I $(WMLBASE)/include \
14
+          -D DOCROOT=$(WMLBASE) \
15
+          -D IMGROOT=$(WMLBASE)/images \
16
+          -D TORSVNSTABLE=$(TORSVNSTABLE) \
17
+          -D TORGIT=$(TORGIT)\
18
+          -D DEVTAG=$(DEVTAG) \
19
+          -D STABLETAG=$(STABLETAG)
20
+
21
+LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
22
+#LANGS=en
23
+
24
+WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
25
+WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
26
+
27
+HTMLFILES = $(shell perl -le 's,  (.*)/(.*).wml  ,        $$2.html.$$1    ,x, print $$_ for @ARGV' $(WMLFILES))
28
+DEPFILES  = $(shell perl -le 's,  (.*)/(.*).wml  ,  .deps/$$2.html.$$1.d  ,x, print $$_ for @ARGV' $(WMLFILES))
29
+
30
+
31
+all: $(HTMLFILES)
32
+
33
+%.html.en: en/%.wml
34
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
35
+
36
+%.html.ar: ar/%.wml en/%.wml
37
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
38
+
39
+%.html.bms: bms/%.wml en/%.wml
40
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
41
+
42
+%.html.es: es/%.wml en/%.wml
43
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
44
+
45
+%.html.et: et/%.wml en/%.wml
46
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
47
+
48
+%.html.de: de/%.wml en/%.wml
49
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
50
+
51
+%.html.fa: fa/%.wml en/%.wml
52
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
53
+
54
+%.html.it: it/%.wml en/%.wml
55
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
56
+
57
+%.html.fi: fi/%.wml en/%.wml
58
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
59
+
60
+%.html.fr: fr/%.wml en/%.wml
61
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
62
+
63
+%.html.ja: ja/%.wml en/%.wml
64
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
65
+
66
+%.html.ko: ko/%.wml en/%.wml
67
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
68
+
69
+%.html.nl: nl/%.wml en/%.wml
70
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
71
+
72
+%.html.no: no/%.wml en/%.wml
73
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
74
+
75
+%.html.pl: pl/%.wml en/%.wml
76
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
77
+
78
+%.html.pt: pt/%.wml en/%.wml
79
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
80
+
81
+%.html.ru: ru/%.wml en/%.wml
82
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
83
+
84
+%.html.se: se/%.wml en/%.wml
85
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
86
+
87
+%.html.tr: tr/%.wml en/%.wml
88
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
89
+
90
+%.html.zh-cn: zh-cn/%.wml en/%.wml
91
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
92
+
93
+.deps/%.html.en.d: en/%.wml .deps/.stamp
94
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
95
+	lang=`dirname $<` && \
96
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
97
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
98
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
99
+	rm -f $$tmpfile
100
+.deps/%.html.ar.d: es/%.wml .deps/.stamp
101
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
102
+	lang=`dirname $<` && \
103
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
104
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
105
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
106
+	rm -f $$tmpfile
107
+.deps/%.html.bms.d: bms/%.wml .deps/.stamp
108
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
109
+	lang=`dirname $<` && \
110
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
111
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
112
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
113
+	rm -f $$tmpfile
114
+.deps/%.html.es.d: es/%.wml .deps/.stamp
115
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
116
+	lang=`dirname $<` && \
117
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
118
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
119
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
120
+	rm -f $$tmpfile
121
+.deps/%.html.et.d: et/%.wml .deps/.stamp
122
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
123
+	lang=`dirname $<` && \
124
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
125
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
126
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
127
+	rm -f $$tmpfile
128
+.deps/%.html.de.d: de/%.wml .deps/.stamp
129
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
130
+	lang=`dirname $<` && \
131
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
132
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
133
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
134
+	rm -f $$tmpfile
135
+.deps/%.html.it.d: it/%.wml .deps/.stamp
136
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
137
+	lang=`dirname $<` && \
138
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
139
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
140
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
141
+	rm -f $$tmpfile
142
+.deps/%.html.fa.d: fa/%.wml .deps/.stamp
143
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
144
+	lang=`dirname $<` && \
145
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
146
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
147
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
148
+	rm -f $$tmpfile
149
+.deps/%.html.fi.d: fi/%.wml .deps/.stamp
150
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
151
+	lang=`dirname $<` && \
152
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
153
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
154
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
155
+	rm -f $$tmpfile
156
+.deps/%.html.fr.d: fr/%.wml .deps/.stamp
157
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
158
+	lang=`dirname $<` && \
159
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
160
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
161
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
162
+	rm -f $$tmpfile
163
+.deps/%.html.ja.d: ja/%.wml .deps/.stamp
164
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
165
+	lang=`dirname $<` && \
166
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
167
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
168
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
169
+	rm -f $$tmpfile
170
+.deps/%.html.ko.d: ko/%.wml .deps/.stamp
171
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
172
+	lang=`dirname $<` && \
173
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
174
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
175
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
176
+	rm -f $$tmpfile
177
+.deps/%.html.nl.d: nl/%.wml .deps/.stamp
178
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
179
+	lang=`dirname $<` && \
180
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
181
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
182
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
183
+	rm -f $$tmpfile
184
+.deps/%.html.no.d: no/%.wml .deps/.stamp
185
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
186
+	lang=`dirname $<` && \
187
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
188
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
189
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
190
+	rm -f $$tmpfile
191
+.deps/%.html.pl.d: pl/%.wml .deps/.stamp
192
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
193
+	lang=`dirname $<` && \
194
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
195
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
196
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
197
+	rm -f $$tmpfile
198
+.deps/%.html.pt.d: pt/%.wml .deps/.stamp
199
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
200
+	lang=`dirname $<` && \
201
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
202
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
203
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
204
+	rm -f $$tmpfile
205
+.deps/%.html.ru.d: ru/%.wml .deps/.stamp
206
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
207
+	lang=`dirname $<` && \
208
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
209
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
210
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
211
+	rm -f $$tmpfile
212
+.deps/%.html.se.d: se/%.wml .deps/.stamp
213
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
214
+	lang=`dirname $<` && \
215
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
216
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
217
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
218
+	rm -f $$tmpfile
219
+.deps/%.html.tr.d: tr/%.wml .deps/.stamp
220
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
221
+	lang=`dirname $<` && \
222
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
223
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
224
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
225
+	rm -f $$tmpfile
226
+.deps/%.html.zh-cn.d: zh-cn/%.wml .deps/.stamp
227
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
228
+	lang=`dirname $<` && \
229
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
230
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
231
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
232
+	rm -f $$tmpfile
233
+.deps/.stamp:
234
+	[ -d .deps ] || mkdir .deps
235
+	touch "$@"
236
+
237
+dep: $(DEPFILES)
238
+clean:
239
+	rm -f $(HTMLFILES) $(DEPFILES)
240
+	for sub in $(SUBDIRS); do \
241
+		$(MAKE) -C "$$sub" WMLBASE=../$(WMLBASE) clean; \
242
+	done
243
+
244
+include $(DEPFILES)