make the stable manpage use git too
Andrew Lewman

Andrew Lewman commited on 2010-08-12 22:23:39
Zeige 1 geänderte Dateien mit 5 Einfügungen und 11 Löschungen.

... ...
@@ -1,5 +1,5 @@
1 1
 ## translation metadata
2
-# Revision: $Revision: 13768 $
2
+# Revision: $Revision: 21567 $
3 3
 
4 4
 #include "head.wmi" TITLE="Tor Project: manual"
5 5
 
... ...
@@ -10,19 +9,13 @@
10 9
   <div id="breadcrumbs">
11 10
     <a href="<page index>">Home &raquo; </a>
12 11
     <a href="<page docs/documentation>">Documentation &raquo; </a>
13
-    <a href="<page docs/tor-doc-osx>">Tor Manual</a>
12
+    <a href="<page docs/tor-doc-osx>">Tor Dev Manual</a>
14 13
   </div>
15 14
   <div id="maincol">  
16 15
     <:
17
-    	#die "Missing manpage" unless -f "$(TORSVNSTABLE)/doc/tor.1.txt";
18
-    	die "Missing manpage" unless -f "$(TORSVNSTABLE)/doc/tor.1.in";
19
-    	my $man = `man2html -M '' $(TORSVNSTABLE)/doc/tor.1.in`;
20
-    	#my $man = `man2html -M '' $(TORSVNSTABLE)/doc/tor.1.txt`;
21
-    	die "No manpage" unless $man;
22
-    
23
-    	$man =~ s,.*<body>,,is;
24
-    	$man =~ s,</body>.*,,is;
25
-    
16
+    	die "Missing git clone at $(TORGIT)" unless -d "$(TORGIT)";
17
+    	my $man = `GIT_DIR=$(TORGIT) git show $(DEVTAG):doc/tor.1.txt | asciidoc -d manpage -s -o - -`;
18
+    	die "No manpage because of asciidoc error or file not available from git" unless $man;
26 19
     	print $man;
27 20
     :>
28 21
   </div>
29 22