Commits

Anonymous committed 0b07882

Added Docmake with various changes to the build system and the files.

  • Participants
  • Parent commits 886f118

Comments (0)

Files changed (13)

wml/gen-module-pages.pl

 {
     my $name = $m->{'perl_name'};
     my $dir_name = "src/modules/$name";
+    my $file_name = "$dir_name/index.html.wml";
+    my $subject = ($m->{'subject'} || $m->{'perl_name'});
+
     if (! -d $dir_name)
     {
         mkdir($dir_name);
         system("svn", "add", "-N", $dir_name);
-        my $file_name = "$dir_name/index.html.wml";
-        open O, ">", $file_name;
-        print O <<"EOF";
+    }
+
+    open O, ">", $file_name;
+    print O <<"EOF";
 #include "../template.wml"
 
 <gen_module_html "$name" />
+<subject "$subject" />
 EOF
-        close(O);
-        system("svn","add",$file_name);
-        # Update the template.wml so the navigation menus will be rebuilt.
-        my $t = time();
-        utime($t, $t, "template.wml");
-    }
+    close(O);
+    
+    system("svn","add",$file_name);
+    # Update the template.wml so the navigation menus will be rebuilt.
+    #
+    my $t = time();
+    utime($t, $t, "template.wml");
 }
 1;

wml/lib/MyModulesList.pm

 my @modules_list =
 (
     {
+        'perl_name' => "App-XML-DocBook-Builder",
+        'subject' => "Docmake",
+        'text' => "Docmake",
+        'title' => "Translate DocBook/XML to Other Formats using XSLT",
+        'svn_dir' => "App-XML-DocBook-Builder",
+        'desc' => <<"EOF",
+<p>
+Docmake is a command line tool to translate 
+<a href="http://en.wikipedia.org/wiki/DocBook">DocBook/XML</a> code into
+various resultnats formats such as XHTML, RTF, PDF and XSL-FO, using the
+more low-level tools. It aims to be a replacement for 
+<a href="http://cyberelk.net/tim/software/xmlto/">xmlto</a>.
+</p>
+
+<p>
+
+</p>
+EOF
+    },
+
+    {
         'perl_name' => "HTML-Strip-Whitespace",
         'text' => "Strip Whitespace",
         'title' => "Strip Unnecessary Whitespace from HTML",

wml/src/modules/App-XML-DocBook-Builder/index.html.wml

+#include "../template.wml"
+
+<gen_module_html "App-XML-DocBook-Builder" />
+<subject "Docmake" />

wml/src/modules/HTML-Strip-Whitespace/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "HTML-Strip-Whitespace" />
-
+<subject "HTML-Strip-Whitespace" />

wml/src/modules/HTML-Widgets-NavMenu/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "HTML-Widgets-NavMenu" />
-
+<subject "HTML-Widgets-NavMenu" />

wml/src/modules/SVN-Pusher/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "SVN-Pusher" />
+<subject "SVN-Pusher" />

wml/src/modules/SVN-RaWeb-Light/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "SVN-RaWeb-Light" />
-
+<subject "SVN-RaWeb-Light" />

wml/src/modules/Test-Run/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "Test-Run" />
+<subject "Test-Run" />

wml/src/modules/WWW-Form/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "WWW-Form" />
-
+<subject "WWW-Form" />

wml/src/modules/WWW-OpenSVN/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "WWW-OpenSVN" />
+<subject "WWW-OpenSVN" />

wml/src/modules/XML-CompareML/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "XML-CompareML" />
-
+<subject "XML-CompareML" />

wml/src/modules/XML-Grammar-Screenplay/index.html.wml

 #include "../template.wml"
 
 <gen_module_html "XML-Grammar-Screenplay" />
+<subject "XML-Grammar-Screenplay" />
 
 <define-tag gen_module_html>
 <set-var module_name="%0" />
-<subject "<get-var module_name />" />
 <:{
 my $module_name = "<get-var module_name />";
 my $modules_list = MyModulesList::get_module_list();