WineHQ: serve docs uncompressed (tools)

Dimitrie O. Paun dpaun at
Wed Mar 10 23:09:00 CST 2004

This modifies the tools to:
  1. Not bother with building the SGML tarball
     If we need that, we'll have to handle it another way,
     but let's make sure we do before I do the work.
  2. Generate a one-page HTML as well, some people like that
  3. Uncompress everything so we don't make users jump
     through hoops.

   No need for the SGML tarball. Generate a all in one page HTML.
   Serve up the uncompressed documents. Prepare the widl page as well.

-------------- next part --------------
Index: make_winehq
RCS file: /home/wine/tools/make_winehq,v
retrieving revision 1.3
diff -u -r1.3 make_winehq
--- make_winehq	22 Jan 2004 04:59:42 -0000	1.3
+++ make_winehq	11 Mar 2004 05:07:30 -0000
@@ -9,7 +9,7 @@
 $name0=~ s+^.*/++;
 # This is a convenience script for building the website docs for
-# WineHQ is a template based website so that the
+# WineHQ is a template based website so that the
 # generated files must have a slightly special format:
 #  * everything outside the <body> tag must be stripped
 #  * the title is specified using a special tag on the first line
@@ -18,7 +18,7 @@
 # This script was written to take care of these differences and
 # to make it easier to set up an automated website update system.
-# This is a standalone script swhich means there is no need to
+# This is a standalone script which means there is no need to
 # invoke the Wine make system just for web updates. For example,
 # one can just grab the documentation subdirectory, without
 # having to pull the entire Wine tree:
@@ -29,7 +29,7 @@
 # $ rsync ...
 # Put the generated files in this directory for easier maintenance
-my $winehq_dir="";
+my $winehq_dir="";
 # The book list
 my @books=qw(wine-user wine-devel winelib-user wine-faq);
@@ -156,14 +156,14 @@
     print "* $book\n";
     psystem("db2html","-d","$argv0_dir/winehtml.dsl", "$book.sgml");
+    psystem("db2html","-u", "-d","$argv0_dir/winehtml.dsl", "$book.sgml");
     psystem("db2pdf", "-d","$argv0_dir/wineprint.dsl","$book.sgml");
     psystem("db2ps",  "-d","$argv0_dir/wineprint.dsl","$book.sgml");
     print "\n";
 # Create the tar files for download
-psystem("tar cfz \"$winehq_dir/winedoc-sgml.tgz\" *.sgml");
-psystem("tar","cfz","$winehq_dir/winedoc-html.tgz", at books);
+psystem("tar","cfz","$winehq_dir/winedoc-html.tgz", map { "$_.html" } @books);
 psystem("tar","cfz","$winehq_dir/winedoc-pdf.tgz", map { "$_.pdf" } @books);
 psystem("tar","cfz","$winehq_dir/winedoc-ps.tgz",  map { "$" } @books);
Index: wine_release
RCS file: /home/wine/tools/wine_release,v
retrieving revision 1.5
diff -u -r1.5 wine_release
--- wine_release	3 Mar 2004 20:53:16 -0000	1.5
+++ wine_release	11 Mar 2004 05:07:30 -0000
@@ -80,6 +80,9 @@
 cd winedump
 do nroff -man | ../../../bin/man2html > ../../../winedump-man.html
 cd ..
+cd widl
+do nroff -man | ../../../bin/man2html > ../../../widl-man.html
+cd ..
 cd wmc
 do nroff -man | ../../../bin/man2html > ../../../wmc-man.html
 cd ..
@@ -98,7 +101,11 @@
 do mv winedoc-html.tgz /home/winehq/www/Docs/
 do mv winedoc-pdf.tgz /home/winehq/www/Docs/
 do mv winedoc-ps.tgz /home/winehq/www/Docs/
-do mv winedoc-sgml.tgz /home/winehq/www/Docs/
+cd /home/winehq/www/Docs/
+do tar xfvz winedoc-html.tgz
+do tar xfvz winedoc-pdf.tgz
+do tar xfvz winedoc-ps.tgz
+do rm -f winedoc-html.tgz winedoc-pdf.tgz winedoc-ps.tgz
 do mv winehq-templates.tgz /home/winehq/opt/lostwages/templates/en/docs/
 cd /home/winehq/opt/lostwages/templates/en/docs/
 do tar xzvf winehq-templates.tgz
@@ -110,6 +117,7 @@
 do ./html2template -i winemaker-man.html -o /home/winehq/opt/lostwages/templates/en/docs/winemaker.template
 do ./html2template -i winebuild-man.html -o /home/winehq/opt/lostwages/templates/en/docs/winebuild.template
 do ./html2template -i winedump-man.html -o /home/winehq/opt/lostwages/templates/en/docs/winedump.template
+do ./html2template -i widl-man.html -o /home/winehq/opt/lostwages/templates/en/docs/widl.template
 do ./html2template -i wmc-man.html -o /home/winehq/opt/lostwages/templates/en/docs/wmc.template
 do ./html2template -i wrc-man.html -o /home/winehq/opt/lostwages/templates/en/docs/wrc.template
 do ./html2template -i wine-man.html -o /home/winehq/opt/lostwages/templates/en/docs/wine.template

More information about the wine-patches mailing list