Skip to content

Commit 7ad2788

Browse files
committed
Eliminate some hackery when creating text files (INSTALL) with a few lines
of DSSSL.
1 parent a3176da commit 7ad2788

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

doc/src/sgml/Makefile

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.33 2001/03/06 20:41:06 petere Exp $
11+
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.34 2001/03/10 16:05:35 petere Exp $
1212
#
1313
#----------------------------------------------------------------------------
1414

@@ -134,29 +134,22 @@ $(addsuffix .tex, $(ALLBOOKS)): %.tex: %.sgml $(ALLSGML) stylesheet.dsl catalog
134134
## Semi-automatic generation of some text files.
135135
##
136136

137+
JADE.text = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) -d stylesheet.dsl -i output-text -t sgml
138+
137139
INSTALL HISTORY: % : %.html
138140
@echo "|";\
139141
echo "| You should now take \`$<', save it as a text file in Netscape,";\
140142
echo "| and put it in place of the existing \`$@' file.";\
141143
echo "|"
142144

145+
INSTALL.html: standalone-install.sgml installation.sgml
146+
$(JADE.text) -V nochunks $+ >$@
143147

144-
INSTALL.html HISTORY.html: %.html : tempfile_%.html
145-
sed 's/Chapter 1. *//g' $< >$@
146-
147-
tempfile_INSTALL.html tempfile_HISTORY.html: tempfile_%.html : tempfile_%.sgml
148-
$(JADE.html) -V nochunks $< >$@
149-
150-
151-
tempfile_INSTALL.sgml: standalone-install.sgml installation.sgml
152-
cat $+ >$@
153-
154-
tempfile_HISTORY.sgml: release.sgml
155-
( echo '<!doctype chapter PUBLIC "-//OASIS//DTD DocBook V3.1//EN">'; \
156-
cat $< ) >$@
157-
158-
159-
.INTERMEDIATE: tempfile_INSTALL.html tempfile_HISTORY.html tempfile_INSTALL.sgml tempfile_HISTORY.sgml
148+
HISTORY.html: release.sgml
149+
( echo '<!doctype appendix PUBLIC "-//OASIS//DTD DocBook V3.1//EN">'; \
150+
cat $< ) >tempfile_HISTORY.sgml
151+
$(JADE.text) -V nochunks tempfile_HISTORY.sgml >$@
152+
rm tempfile_HISTORY.sgml
160153

161154

162155
##

doc/src/sgml/stylesheet.dsl

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1.6 2001/02/24 12:40:27 petere Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/stylesheet.dsl,v 1.7 2001/03/10 16:05:35 petere Exp $ -->
22
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
33

44
<!-- must turn on one of these with -i on the jade command line -->
55
<!ENTITY % output-html "IGNORE">
66
<!ENTITY % output-print "IGNORE">
7+
<!ENTITY % output-text "IGNORE">
78

89
<![ %output-html; [
910
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
@@ -13,6 +14,10 @@
1314
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA DSSSL>
1415
]]>
1516

17+
<![ %output-text; [
18+
<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
19+
]]>
20+
1621
]>
1722

1823
<style-sheet>
@@ -22,7 +27,6 @@
2227
(define pgsql-docs-list "pgsql-docs@postgresql.org")
2328

2429
(define %refentry-xref-manvolnum% #f)
25-
(define %section-autolabel% #t)
2630
(define %callout-graphics% #f)
2731

2832
(define %content-title-end-punct%
@@ -36,6 +40,7 @@
3640
<![ %output-html; [
3741
;; customize the html stylesheet
3842

43+
(define %section-autolabel% #t)
3944
(define %generate-legalnotice-link% #t)
4045
(define %html-ext% ".html")
4146
(define %link-mailto-url% (string-append "mailto:" pgsql-docs-list))
@@ -58,13 +63,24 @@
5863
<![ %output-print; [
5964
;; customize the print stylesheet
6065

66+
(define %section-autolabel% #t)
6167
(define %default-quadding% 'justify)
6268
(define bop-footnotes #t)
6369
(define %hyphenation%
6470
(if tex-backend #t #f))
6571

6672
]]> <!-- %output-print -->
6773

74+
<![ %output-text; [
75+
;; customize HTML stylesheet to be suitable for dumping plain text
76+
;; (for INSTALL file)
77+
78+
(define %section-autolabel% #f)
79+
(define %chapter-autolabel% #f)
80+
(define $generate-chapter-toc$ (lambda () #f))
81+
82+
]]> <!-- %output-text -->
83+
6884
</style-specification-body>
6985
</style-specification>
7086

0 commit comments

Comments
 (0)