52770df998b399103bebc5464510457b28518ee4
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
6) # 5. scp *.html.* arma@tor.eff.org:/var/www/fhaven/htdocs/
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 \
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 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

32) HTMLFILES = $(patsubst de/%.wml, %.html.de, \
33)             $(patsubst en/%.wml, %.html.en, \
34)             $(patsubst it/%.wml, %.html.it, \
Roger Dingledine update the website makefile...

Roger Dingledine authored 19 years ago

35)             $(patsubst fr/%.wml, %.html.fr, \
36)             $(WMLFILES)))))
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

37) DEPFILES =  $(patsubst de/%.wml,.deps/%.html.de.d,   \
38)             $(patsubst en/%.wml,.deps/%.html.en.d,   \
39)             $(patsubst it/%.wml,.deps/%.html.it.d,   \
Roger Dingledine update the website makefile...

Roger Dingledine authored 19 years ago

40)             $(patsubst fr/%.wml,.deps/%.html.fr.d,   \
41)             $(WMLFILES)))))
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

42) 
Roger Dingledine update the website makefile...

Roger Dingledine authored 19 years ago

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

Peter Palfrader authored 19 years ago

44) 
45) all: $(HTMLFILES)
46) 
47) 
48) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Roger Dingledine authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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.it.d: it/%.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
Roger Dingledine update the website makefile...

Roger Dingledine authored 19 years ago

85) .deps/%.html.fr.d: fr/%.wml
86) 	@[ -d .deps ] || mkdir .deps
87) 	tmpfile=`tempfile` \
88) 	lang=`dirname $<` && \
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
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

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

Peter Palfrader authored 19 years ago

98) 
99) dep: $(DEPFILES)
100) 
101) clean:
102) 	rm -f $(HTMLFILES) $(DEPFILES)
103) 
104) include $(DEPFILES)