bb36b2717163141749475f9ea59453830288f7be
Roger Dingledine add instructions to the web...

Roger Dingledine authored 18 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 18 years ago

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

Roger Dingledine authored 18 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 18 years ago

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

Peter Palfrader authored 18 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 18 years ago

18)           -D TORCVSSTABLE=$(TORCVSSTABLE) \
19)           -D TORCVSHEAD=$(TORCVSHEAD)
20) 
21) WMLFILES=$(wildcard en/*.wml \
22)                     de/*.wml \
23)                     it/*.wml \
24)           )
Peter Palfrader Add translation-status page

Peter Palfrader authored 18 years ago

25) WMIFILES=$(wildcard include/*.wmi \
26)                     en/*.wmi      \
27)                     de/*.wmi      \
28)                     it/*.wmi      \
29)           )
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 18 years ago

30) HTMLFILES = $(patsubst de/%.wml, %.html.de, \
31)             $(patsubst en/%.wml, %.html.en, \
32)             $(patsubst it/%.wml, %.html.it, \
Peter Palfrader Move website to wml

Peter Palfrader authored 18 years ago

33)             $(WMLFILES))))
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 18 years ago

34) DEPFILES =  $(patsubst de/%.wml,.deps/%.html.de.d,   \
35)             $(patsubst en/%.wml,.deps/%.html.en.d,   \
36)             $(patsubst it/%.wml,.deps/%.html.it.d,   \
Peter Palfrader Move website to wml

Peter Palfrader authored 18 years ago

37)             $(WMLFILES))))
38) 
Peter Palfrader Make local links point to t...

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

40) 
41) all: $(HTMLFILES)
42) 
43) 
44) 
Peter Palfrader Apparently foo.html.en work...

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

75) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
76) 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
77) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
78) 	rm -f $$tmpfile
Peter Palfrader Move website to wml

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

84) 
85) dep: $(DEPFILES)
86) 
87) clean:
88) 	rm -f $(HTMLFILES) $(DEPFILES)
89) 
90) include $(DEPFILES)