9293288a5433ce8397b5d99fa1a9569195513d11
Roger Dingledine add instructions to the web...

Roger Dingledine authored 19 years ago

1) # Directions for building the website:
2) # 1. check out stable-tor and cvs-tor and website onto moria.
3) # 2. edit the two lines below to point to them.
4) # 3. (edit include/versions.wmi or others if you like)
5) # 4. make
Roger Dingledine change the path in the dire...

Roger Dingledine authored 19 years ago

6) # 5. scp *.html.* arma@tor.eff.org:/www/tor.eff.org/docs/
Roger Dingledine add instructions to the web...

Roger Dingledine authored 19 years ago

7) 
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

8) TORCVSSTABLE = ../tor.0.1.0-branch
9) TORCVSHEAD = ../tor-head
Roger Dingledine add instructions to the web...

Roger Dingledine authored 19 years ago

10) #TORCVSSTABLE = /home/arma/work/onion/tor-010x/tor
11) #TORCVSHEAD = /home/arma/work/onion/cvs/tor
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

12) 
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

13) WMLBASE = .
14) WMLOPT  = \
15)           -I include \
16)           -D DOCROOT=$(WMLBASE) \
17)           -D IMGROOT=$(WMLBASE)/images \
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

18)           -D TORCVSSTABLE=$(TORCVSSTABLE) \
19)           -D TORCVSHEAD=$(TORCVSHEAD)
20) 
Peter Palfrader Remove some of the redundan...

Peter Palfrader authored 18 years ago

21) LANGS=de en it fr se
22) WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
23) WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
24) 
Roger Dingledine make it clearer in the make...

Roger Dingledine authored 19 years ago

25) HTMLFILES = $(patsubst de/%.wml, %.html.de,          \
26)              $(patsubst en/%.wml, %.html.en,         \
27)               $(patsubst it/%.wml, %.html.it,        \
28)                $(patsubst fr/%.wml, %.html.fr,       \
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

29)                 $(patsubst se/%.wml, %.html.se,      \
Roger Dingledine make it clearer in the make...

Roger Dingledine authored 19 years ago

30)             $(WMLFILES)                              \
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

31)                  )                                   \
Roger Dingledine make it clearer in the make...

Roger Dingledine authored 19 years ago

32)                 )                                    \
33)                )                                     \
34)               )                                      \
35)              )
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

36) DEPFILES =  $(patsubst de/%.wml,.deps/%.html.de.d,   \
Roger Dingledine make it clearer in the make...

Roger Dingledine authored 19 years ago

37)              $(patsubst en/%.wml,.deps/%.html.en.d,  \
38)               $(patsubst it/%.wml,.deps/%.html.it.d, \
39)                $(patsubst fr/%.wml,.deps/%.html.fr.d,\
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

40)                 $(patsubst se/%.wml,.deps/%.html.se.d,\
Roger Dingledine make it clearer in the make...

Roger Dingledine authored 19 years ago

41)             $(WMLFILES)                              \
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

42)                  )                                   \
Roger Dingledine make it clearer in the make...

Roger Dingledine authored 19 years ago

43)                 )                                    \
44)                )                                     \
45)               )                                      \
46)              )
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

47) 
48) 
49) all: $(HTMLFILES)
50) 
51) 
52) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

53) %.html.en: en/%.wml
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

54) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

55) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

56) %.html.de: de/%.wml en/%.wml
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

57) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
58) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

59) %.html.it: it/%.wml en/%.wml
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

60) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
61) 
Roger Dingledine update the website makefile...

Roger Dingledine authored 19 years ago

62) %.html.fr: fr/%.wml en/%.wml
63) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

64) 
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

65) %.html.se: se/%.wml en/%.wml
66) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
67) 
Peter Palfrader Make makefile even more -j...

Peter Palfrader authored 18 years ago

68) .deps/%.html.en.d: en/%.wml .deps/.stamp
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

69) 	tmpfile=`tempfile` \
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

70) 	lang=`dirname $<` && \
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

71) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
72) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
73) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
74) 	rm -f $$tmpfile
Peter Palfrader Make makefile even more -j...

Peter Palfrader authored 18 years ago

75) .deps/%.html.de.d: de/%.wml .deps/.stamp
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

76) 	tmpfile=`tempfile` \
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

77) 	lang=`dirname $<` && \
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

78) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
79) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
80) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
81) 	rm -f $$tmpfile
Peter Palfrader Make makefile even more -j...

Peter Palfrader authored 18 years ago

82) .deps/%.html.it.d: it/%.wml .deps/.stamp
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

83) 	tmpfile=`tempfile` \
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

84) 	lang=`dirname $<` && \
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

85) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
86) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
87) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
88) 	rm -f $$tmpfile
Peter Palfrader Make makefile even more -j...

Peter Palfrader authored 18 years ago

89) .deps/%.html.fr.d: fr/%.wml .deps/.stamp
Roger Dingledine update the website makefile...

Roger Dingledine authored 19 years ago

90) 	tmpfile=`tempfile` \
91) 	lang=`dirname $<` && \
92) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
93) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
94) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
95) 	rm -f $$tmpfile
Peter Palfrader Make makefile even more -j...

Peter Palfrader authored 18 years ago

96) .deps/%.html.se.d: se/%.wml .deps/.stamp
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

97) 	tmpfile=`tempfile` \
98) 	lang=`dirname $<` && \
99) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
100) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
101) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
102) 	rm -f $$tmpfile
Peter Palfrader Make makefile even more -j...

Peter Palfrader authored 18 years ago

103) .deps/.stamp:
104) 	[ -d .deps ] || mkdir .deps
105) 	touch "$@"
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

106) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

107) tor-manual-cvs.html.en: $(TORCVSHEAD)/doc/tor.1.in
108) tor-manual.html.en: $(TORCVSSTABLE)/doc/tor.1.in
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

109) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

110) translation-status.html.en: $(LANGS) $(WMIFILES) $(WMLFILES)
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

111) 
112) dep: $(DEPFILES)
113) 
114) clean:
115) 	rm -f $(HTMLFILES) $(DEPFILES)
116) 
117) include $(DEPFILES)