Eliminate some hackery when creating text files (INSTALL) with a few lines
authorPeter Eisentraut
Sat, 10 Mar 2001 16:05:35 +0000 (16:05 +0000)
committerPeter Eisentraut
Sat, 10 Mar 2001 16:05:35 +0000 (16:05 +0000)
of DSSSL.

doc/src/sgml/Makefile
doc/src/sgml/stylesheet.dsl

index a67aa0330f1d86721aa0e27677f9773e8214491c..bf89e45034cb561c64d93c4fd60195726ad640ad 100644 (file)
@@ -8,7 +8,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.33 2001/03/06 20:41:06 petere Exp $
+#    $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.34 2001/03/10 16:05:35 petere Exp $
 #
 #----------------------------------------------------------------------------
 
@@ -134,29 +134,22 @@ $(addsuffix .tex, $(ALLBOOKS)): %.tex: %.sgml $(ALLSGML) stylesheet.dsl catalog
 ## Semi-automatic generation of some text files.
 ##
 
+JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d stylesheet.dsl -i output-text -t sgml
+
 INSTALL HISTORY: % : %.html
    @echo "|";\
     echo "| You should now take \`$<', save it as a text file in Netscape,";\
     echo "| and put it in place of the existing \`$@' file.";\
     echo "|"
 
+INSTALL.html: standalone-install.sgml installation.sgml
+   $(JADE.text) -V nochunks $+ >$@
 
-INSTALL.html HISTORY.html: %.html : tempfile_%.html
-   sed 's/Chapter 1. *//g' $< >$@
-
-tempfile_INSTALL.html tempfile_HISTORY.html: tempfile_%.html : tempfile_%.sgml
-   $(JADE.html) -V nochunks $< >$@
-
-
-tempfile_INSTALL.sgml: standalone-install.sgml installation.sgml
-   cat $+ >$@
-
-tempfile_HISTORY.sgml: release.sgml
-   ( echo ''; \
-     cat $< ) >$@
-
-
-.INTERMEDIATE: tempfile_INSTALL.html tempfile_HISTORY.html tempfile_INSTALL.sgml tempfile_HISTORY.sgml
+HISTORY.html: release.sgml
+   ( echo ''; \
+     cat $< ) >tempfile_HISTORY.sgml
+   $(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@
+   rm tempfile_HISTORY.sgml
 
 
 ##
index b9b736d3c6cd147df166123fd5db733ae7c94088..7574b57e2fbfa9c0e3afde51a90b7a3dfc9cf2bb 100644 (file)
@@ -1,9 +1,10 @@
-
+
 
 
 
 
 
+
 
 
 
 
 ]]>
 
+
+
+]]>
+
 ]>
 
 
@@ -22,7 +27,6 @@
 (define pgsql-docs-list "[email protected]")
 
 (define %refentry-xref-manvolnum% #f)
-(define %section-autolabel% #t)
 (define %callout-graphics% #f)
 
 (define %content-title-end-punct% 
@@ -36,6 +40,7 @@
 
 ;; customize the html stylesheet
 
+(define %section-autolabel% #t)
 (define %generate-legalnotice-link% #t)
 (define %html-ext%              ".html")
 (define %link-mailto-url%       (string-append "mailto:" pgsql-docs-list))
@@ -58,6 +63,7 @@
 
 ;; customize the print stylesheet
 
+(define %section-autolabel%     #t)
 (define %default-quadding%      'justify)
 (define bop-footnotes           #t)
 (define %hyphenation%
 
 ]]> 
 
+
+;; customize HTML stylesheet to be suitable for dumping plain text
+;; (for INSTALL file)
+
+(define %section-autolabel% #f)
+(define %chapter-autolabel% #f)
+(define $generate-chapter-toc$ (lambda () #f))
+
+]]> 
+