Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / captive / doc / Reverse.pm
similarity index 90%
rename from project/captive/doc/Reverse.html.pl
rename to project/captive/doc/Reverse.pm
index d444c87..d048b20 100755 (executable)
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
 # Captive project doc Reverse Engineering page Perl template.
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,24 +23,24 @@ our $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
-BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
 require CGI;
 BEGIN { Wuse 'project::captive::doc::Macros'; }
 
 
+sub handler
+{
 project::captive::doc::Macros->init(
-               "__PACKAGE__"=>__PACKAGE__,
                "title"=>'Captive NTFS Developer Documentation: Reverse Engineering',
-               "rel_prev"=>'Components.html.pl',
-               "rel_next"=>'CacheManager.html.pl',
+               "rel_prev"=>'Components.pm',
+               "rel_next"=>'CacheManager.pm',
                );
 
 
 print <<"HERE";
 
 
-<a name="reverse"><h1>Reverse Engineering</h1></a>
+<h1 id="reverse">Reverse Engineering</h1>
 
        <p>This project has no intentions to reverse engineer and document the
        filesystem data structures themselves since they are being encapsulated by
@@ -86,7 +84,7 @@ print <<"HERE";
        interpret debug symbols from W32 <span class="fname">.PDB</span>
        (Program DataBase) debug information files.</p>
 
-       <a name="dumpbin"><h2><span class="productname">dumpbin.exe</span></h2></a>
+       <h2 id="dumpbin"><span class="productname">dumpbin.exe</span></h2>
 
                <p>You should use the following options for
                <span class="productname">dumpbin.exe</span>:</p>
@@ -101,7 +99,7 @@ print <<"HERE";
                        <p>PDB file found at '.\\FILENAME.pdb'</p>
                </blockquote>
 
-       <a name="WinDbg"><h2><span class="productname">WinDbg</span> Windows NT kernel debugging</h2></a>
+       <h2 id="WinDbg"><span class="productname">WinDbg</span> Windows NT kernel debugging</h2>
 
                <p><span class="productname">WinDbg</span> is downloadable from:
                @{[ a_href 'http://www.microsoft.com/whdc/ddk/debugging/installx86.mspx' ]}</p>
@@ -123,7 +121,7 @@ print <<"HERE";
                hardware and you can connect them by a virtual serial port provided by
                <span class="productname">VMware</span>.</p>
 
-               <a name="WinDbg_WinDbg"><h3><span class="productname">WinDbg</span> side setup</h3></a>
+               <h3 id="WinDbg_WinDbg"><span class="productname">WinDbg</span> side setup</h3>
 
                        @{[ doc_img 'ntdebug-vmware-windbg',
                                        '<span class="productname">VMware</span> virtual serial port'
@@ -135,7 +133,7 @@ print <<"HERE";
                        @{[ doc_img 'ntdebug-windbg-port','Port settings of <span class="productname">WinDbg</span>' ]}
                        @{[ doc_img 'ntdebug-windbg-sym','Symbols files location of <span class="productname">WinDbg</span>' ]}
 
-                       <span class="constant">Symbols</span> should point to the directory where
+                       <p><span class="constant">Symbols</span> should point to the directory where
                        reside files extracted from the symbol archive for your version of
                        <span class="productname">Microsoft Windows</span>. In the case of the
                        recommended <span class="productname">Microsoft Windows XP Service Pack 1 Checked Build</span>
@@ -161,7 +159,7 @@ print <<"HERE";
 
                        @{[ doc_img 'ntdebug-windbg-boot','Successfuly connected <span class="productname">WinDbg</span>' ]}
 
-               <a name="WinDbg_kern"><h3>Setup of the side being kernel-debugged</h3></a>
+               <h3 id="WinDbg_kern">Setup of the side being kernel-debugged</h3>
 
                        @{[ doc_img 'ntdebug-vmware-xpdebug',
                                        '<span class="productname">VMware</span> virtual serial port'
@@ -186,3 +184,5 @@ HERE
 
 
 project::captive::doc::Macros->footer();
+}
+1;