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

Roger Dingledine authored 19 years ago

24)                     fr/*.wml \
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

25)                     se/*.wml \
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

26)           )
Peter Palfrader Add translation-status page

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 19 years ago

31)                     fr/*.wmi      \
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

32)                     se/*.wmi      \
Peter Palfrader Add translation-status page

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 19 years ago

34) HTMLFILES = $(patsubst de/%.wml, %.html.de,          \
35)              $(patsubst en/%.wml, %.html.en,         \
36)               $(patsubst it/%.wml, %.html.it,        \
37)                $(patsubst fr/%.wml, %.html.fr,       \
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

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

Roger Dingledine authored 19 years ago

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

Roger Dingledine authored 18 years ago

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

Roger Dingledine authored 19 years ago

41)                 )                                    \
42)                )                                     \
43)               )                                      \
44)              )
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 19 years ago

46)              $(patsubst en/%.wml,.deps/%.html.en.d,  \
47)               $(patsubst it/%.wml,.deps/%.html.it.d, \
48)                $(patsubst fr/%.wml,.deps/%.html.fr.d,\
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

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

Roger Dingledine authored 19 years ago

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

Roger Dingledine authored 18 years ago

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

Roger Dingledine authored 19 years ago

52)                 )                                    \
53)                )                                     \
54)               )                                      \
55)              )
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

56) 
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

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

Peter Palfrader authored 19 years ago

58) 
59) all: $(HTMLFILES)
60) 
61) 
62) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

63) %.html.en: 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 $@
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 19 years ago

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

Peter Palfrader authored 19 years ago

74) 
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

75) %.html.se: se/%.wml en/%.wml
76) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
77) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 19 years ago

102) .deps/%.html.fr.d: fr/%.wml
103) 	@[ -d .deps ] || mkdir .deps
104) 	tmpfile=`tempfile` \
105) 	lang=`dirname $<` && \
106) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
107) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
108) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
109) 	rm -f $$tmpfile
Roger Dingledine and fix the makefile too

Roger Dingledine authored 18 years ago

110) .deps/%.html.se.d: se/%.wml
111) 	@[ -d .deps ] || mkdir .deps
112) 	tmpfile=`tempfile` \
113) 	lang=`dirname $<` && \
114) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
115) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
116) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
117) 	rm -f $$tmpfile
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

123) 
124) dep: $(DEPFILES)
125) 
126) clean:
127) 	rm -f $(HTMLFILES) $(DEPFILES)
128) 
129) include $(DEPFILES)