0807940aea618d3415d5404978cdb762fc3ae3a2
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

1) #!wml
Peter Palfrader Move website to wml

Peter Palfrader authored 19 years ago

2) 
Sebastian Hahn Update gitweb urls once more

Sebastian Hahn authored 14 years ago

3) <define-tag gitblob whitespace=delete>http://gitweb.torproject.org/tor.git?a=blob_plain;hb=HEAD;f=</define-tag>
Roger Dingledine link to maint-0.2.1 release...

Roger Dingledine authored 14 years ago

4) <define-tag gitblobstable whitespace=delete>http://gitweb.torproject.org/tor.git?a=blob_plain;hb=maint-0.2.1;f=</define-tag>
Sebastian Hahn Update gitweb urls once more

Sebastian Hahn authored 14 years ago

5) <define-tag gittree whitespace=delete>http://gitweb.torproject.org/tor.git?a=tree;hb=HEAD;f=</define-tag>
Sebastian Hahn Also fix the "browser the s...

Sebastian Hahn authored 14 years ago

6) <define-tag gitrepo whitespace=delete>http://gitweb.torproject.org/tor.git?a=tree;hb=HEAD</define-tag>
Roger Dingledine start getting rid of this a...

Roger Dingledine authored 16 years ago

7) <define-tag svnwebsite whitespace=delete>https://svn.torproject.org/svn/website/trunk/</define-tag>
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

8) 
9) #  Xinclude "locallinks.wmi"
10) #  Xinclude "langlocallinks.$(LANG).wmi"
11) 
Peter Palfrader Remove ././././././ from links

Peter Palfrader authored 18 years ago

12) <:
13) 	sub stripDotSlashs($) {
14) 		my ($s) = @_;
15) 		1 while ($s =~ s|/\./|/|);
16) 		1 while ($s =~ s|^\./||);
17) 		return $s;
18) 	};
19) :>
20) 
Peter Palfrader also use "use warnings"

Peter Palfrader authored 19 years ago

21) <define-tag page whitespace=delete><:{
Peter Palfrader Make translation status mor...

Peter Palfrader authored 19 years ago

22) 	my $page="%0";
23) 	my $lang="$(LANG)";
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

24) 	my ($dir, $base) = $page =~ m,^(?:(.*)/)?(.*?)$,;
25) 	$dir = '.' unless defined $dir;
26) 	if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
Peter Palfrader Remove ././././././ from links

Peter Palfrader authored 18 years ago

27) 		print stripDotSlashs("$(DOCROOT)/$dir/$base.html.$lang");
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

28) 	} elsif (-e "$(DOCROOT)/$dir/en/$base.wml") {
Peter Palfrader Remove ././././././ from links

Peter Palfrader authored 18 years ago

29) 		print stripDotSlashs("$(DOCROOT)/$dir/$base.html");
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

30) 	} else {
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

31) 		warn "$WML_SRC_FILENAME has a [page $page] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
Peter Palfrader Make local links point to t...

Peter Palfrader authored 19 years ago

32) 	};