Update make_winehq
Francois Gouget
fgouget at free.fr
Wed Oct 8 09:08:01 CDT 2003
Update make_winehq to make it less dependent on the Wine sources:
* still generate one html file per chapter (better for web sites)
* reference a css file
* use our own wineprint.dsl (and winehtml.dsl) file
Changelog:
* make_winehq,
winehtml.dsl,
wineprint.dsl,
winedoc.css
Update make_winehq to make it less dependent on the Wine sources.
Use our own winehtml.dsl, wineprint.dsl and winedoc.css files.
No need to redirect the output of db2pdf and db2ps to /dev/null.
Wine no longer has .ent files so don't try to tar them.
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Any sufficiently advanced bug is indistinguishable from a feature.
-- from some indian guy
-------------- next part --------------
Index: make_winehq
===================================================================
RCS file: /home/cvs/tools/make_winehq,v
retrieving revision 1.1
diff -u -r1.1 make_winehq
--- make_winehq 9 Sep 2003 19:42:49 -0000 1.1
+++ make_winehq 8 Oct 2003 11:44:22 -0000
@@ -124,6 +124,9 @@
#
###
+my $argv0_dir=$0;
+$argv0_dir =~ s%/[^/]*$%%;
+
if (-e $winehq_dir)
{
if (-e $winehq_dir)
@@ -151,16 +154,16 @@
foreach my $book (@books)
{
print "* $book\n";
- psystem("db2html -d default.dsl $book.sgml");
- copy("winedoc.css","$book");
- psystem("db2pdf -d print.dsl $book.sgml >/dev/null 2>&1");
- psystem("db2ps -d print.dsl $book.sgml >/dev/null 2>&1");
+ psystem("db2html","-d","$argv0_dir/winehtml.dsl", "$book.sgml");
+ copy("$argv0_dir/winedoc.css","$book");
+ 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 *.css *.dsl *.ent");
+psystem("tar cfz \"$winehq_dir/winedoc-sgml.tgz\" *.sgml *.dsl");
psystem("tar","cfz","$winehq_dir/winedoc-html.tgz", at books);
psystem("tar","cfz","$winehq_dir/winedoc-pdf.tgz", map { "$_.pdf" } @books);
psystem("tar","cfz","$winehq_dir/winedoc-ps.tgz", map { "$_.ps" } @books);
--- /dev/null 2003-09-08 21:59:07.000000000 +0200
+++ winehtml.dsl 2003-10-08 12:58:29.000000000 +0200
@@ -0,1 +1,28 @@
+<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
+<!ENTITY walsh-style PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
+<!ENTITY cygnus-style SYSTEM "/usr/lib/sgml/stylesheet/dsssl/docbook/cygnus/cygnus-both.dsl" CDATA DSSSL>
+]>
+
+<style-sheet>
+<style-specification id="html" use="docbook">
+<style-specification-body>
+
+; Use the section id as the filename rather than
+; cryptic filenames like x1547.html
+(define %use-id-as-filename% #t)
+
+; Repeat the section number in each section to make it easier
+; when browsing the doc
+(define %section-autolabel% #t)
+
+; Use CSS to make the look of the documentation customizable
+(define %stylesheet% "winedoc.css")
+(define %stylesheet-type% "text/css")
+
+</style-specification-body>
+</style-specification>
+
+<external-specification id="docbook" document="walsh-style">
+
+</style-sheet>
--- /dev/null 2003-09-08 21:59:07.000000000 +0200
+++ wineprint.dsl 2003-10-08 12:59:49.000000000 +0200
@@ -0,1 +1,112 @@
+<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
+<!ENTITY print-ss PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA DSSSL>
+]>
+
+<style-sheet>
+
+<style-specification id="print" use="print-stylesheet">
+<style-specification-body>
+
+;; I was hoping that this would take out the many blank pages in the
+;; PDF file, but it doesn't, it just slides the page numbers over.
+(define %two-side% #f)
+
+(define %generate-book-titlepage% #t)
+
+;;Titlepage Not Separate
+(define (chunk-skip-first-element-list)
+ (list (normalize "sect1")
+ (normalize "section")))
+
+;;Titlepage Separate?
+;(define (chunk-skip-first-element-list)
+; '())
+
+(define (list-element-list)
+ ;; fixes bug in Table of Contents generation
+ '())
+
+(define (toc-depth nd)
+ 2)
+
+;; This seems to have no affect
+(define %generate-book-titlepage-on-separate-page% #f)
+
+(define %body-start-indent%
+ ;; Default indent of body text
+ 2pi)
+
+(define %para-indent-firstpara%
+ ;; First line start-indent for the first paragraph
+ 0pt)
+
+(define %para-indent%
+ ;; First line start-indent for paragraphs (other than the first)
+ 0pt)
+
+(define %block-start-indent%
+ ;; Extra start-indent for block-elements
+ 2pt)
+
+;;Define distance between paragraphs
+(define %para-sep%
+ (/ %bf-size% 2.0))
+
+;;Define distance between block elements (figures, tables, etc.).
+(define %block-sep%
+ (* %para-sep% 1.0))
+;; (* %para-sep% 2.0))
+
+(define %hyphenation%
+ ;; Allow automatic hyphenation?
+ #t)
+
+(define %left-margin% 5pi)
+(define %right-margin% 5pi)
+(define %top-margin% 5pi)
+(define %bottom-margin% 5pi)
+
+(define %footer-margin% 2pi)
+(define %header-margin% 2pi)
+
+(define %line-spacing-factor% 1.3)
+ ;; Factor used to calculate leading
+ ;; The leading is calculated by multiplying the current font size by the
+ ;; '%line-spacing-factor%'. For example, if the font size is 10pt and
+ ;; the '%line-spacing-factor%' is 1.1, then the text will be
+ ;; printed "10-on-11".
+
+(define %head-before-factor%
+ ;; Factor used to calculate space above a title
+ ;; The space before a title is calculated by multiplying the font size
+ ;; used in the title by the '%head-before-factor%'.
+;; 0.75)
+ 0.5)
+
+(define %head-after-factor%
+ ;; Factor used to calculate space below a title
+ ;; The space after a title is calculated by multiplying the font size used
+ ;; in the title by the '%head-after-factor%'.
+ 0.5)
+
+(define %input-whitespace-treatment% 'collapse)
+
+(define ($generate-book-lot-list$)
+ ;; Which Lists of Titles should be produced for Books?
+ (list ))
+
+(define tex-backend
+ ;; Are we using the TeX backend?
+ ;; This parameter exists so that '-V tex-backend' can be used on the
+ ;; command line to explicitly select the TeX backend.
+ #t)
+
+</style-specification-body>
+</style-specification>
+
+<external-specification id="print-stylesheet" document="print-ss">
+
+</style-sheet>
+
+
--- /dev/null 2003-09-08 21:59:07.000000000 +0200
+++ winedoc.css 2003-09-09 19:05:09.000000000 +0200
@@ -0,0 +1,10 @@
+body { background-color: #FFFFFF; color: #000000; }
+
+a:link { color: #a50d0d; }
+a:visited { color: #505050; }
+a:active { color: #a50d0d; }
+
+.screen { background-color: #E0D0D0; padding: 0.5ex; }
+.question { border-top: dashed thin; font-weight: bolder; }
+
+.userinput { font-weight: bold; }
More information about the wine-patches
mailing list