41e8fd6a0efbaf057ec0f93e5d994a8ebe77478e
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 18 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) 
21) WMLFILES=$(wildcard en/*.wml \
22)                     de/*.wml \
23)                     it/*.wml \
Roger Dingledine update the website makefile...

Roger Dingledine authored 18 years ago

24)                     fr/*.wml \
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

25)           )
Peter Palfrader Add translation-status page

Peter Palfrader authored 19 years ago

26) WMIFILES=$(wildcard include/*.wmi \
27)                     en/*.wmi      \
28)                     de/*.wmi      \
29)                     it/*.wmi      \
Roger Dingledine update the website makefile...

Roger Dingledine authored 18 years ago

30)                     fr/*.wmi      \
Peter Palfrader Add translation-status page

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 18 years ago

32) HTMLFILES = $(patsubst de/%.wml, %.html.de,          \
33)              $(patsubst en/%.wml, %.html.en,         \
34)               $(patsubst it/%.wml, %.html.it,        \
35)                $(patsubst fr/%.wml, %.html.fr,       \
36)             $(WMLFILES)                              \
37)                 )                                    \
38)                )                                     \
39)               )                                      \
40)              )
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 18 years ago

42)              $(patsubst en/%.wml,.deps/%.html.en.d,  \
43)               $(patsubst it/%.wml,.deps/%.html.it.d, \
44)                $(patsubst fr/%.wml,.deps/%.html.fr.d,\
45)             $(WMLFILES)                              \
46)                 )                                    \
47)                )                                     \
48)               )                                      \
49)              )
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

50) 
Roger Dingledine update the website makefile...

Roger Dingledine authored 18 years ago

51) LANGS=de en it fr
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

52) 
53) all: $(HTMLFILES)
54) 
55) 
56) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 18 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

70) 	@[ -d .deps ] || mkdir .deps
71) 	tmpfile=`tempfile` \
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

73) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
74) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
75) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
76) 	rm -f $$tmpfile
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

77) .deps/%.html.de.d: de/%.wml
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

78) 	@[ -d .deps ] || mkdir .deps
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

81) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
82) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
83) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
84) 	rm -f $$tmpfile
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

85) .deps/%.html.it.d: it/%.wml
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

86) 	@[ -d .deps ] || mkdir .deps
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

89) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
90) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
91) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
92) 	rm -f $$tmpfile
Roger Dingledine update the website makefile...

Roger Dingledine authored 18 years ago

93) .deps/%.html.fr.d: fr/%.wml
94) 	@[ -d .deps ] || mkdir .deps
95) 	tmpfile=`tempfile` \
96) 	lang=`dirname $<` && \
97) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
98) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
99) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
100) 	rm -f $$tmpfile
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

106) 
107) dep: $(DEPFILES)
108) 
109) clean:
110) 	rm -f $(HTMLFILES) $(DEPFILES)
111) 
112) include $(DEPFILES)