d1bcc291f810ab7209fc5a0da2829fe0350d728b
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 \
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 18 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 18 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 18 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 18 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 18 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 18 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 18 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 18 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 Make makefile even more -j...

Peter Palfrader authored 18 years ago

78) .deps/%.html.en.d: en/%.wml .deps/.stamp
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 Make makefile even more -j...

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 18 years ago

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

Roger Dingledine authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Roger Dingledine authored 18 years ago

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

Peter Palfrader authored 18 years ago

113) .deps/.stamp:
114) 	[ -d .deps ] || mkdir .deps
115) 	touch "$@"
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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