aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2015-03-01 23:08:44 +0200
committerSergey Poznyakoff <gray@gnu.org>2015-03-01 23:08:44 +0200
commitb0d2697f689348976da7aefd506b3d8b6fdee420 (patch)
tree84fe8a7b71536d4cdbbd57c8833160006b46cf1c /doc
parent891bb67de28c778827d4841b04d440caac8be18a (diff)
downloadpies-b0d2697f689348976da7aefd506b3d8b6fdee420.tar.gz
pies-b0d2697f689348976da7aefd506b3d8b6fdee420.tar.bz2
Switch to Texinfo 5.0
* doc/Config: Rewrite. * doc/Makefile.am: Use Makeinfo 5 instead of texi2htm * doc/gendocs_template: Ps is not built * imprimatur: Upgrade.
Diffstat (limited to 'doc')
-rw-r--r--doc/Config404
-rw-r--r--doc/Makefile.am14
-rwxr-xr-xdoc/gendocs.sh490
-rw-r--r--[-rwxr-xr-x]doc/gendocs_template8
-rw-r--r--doc/pies.texi2
5 files changed, 602 insertions, 316 deletions
diff --git a/doc/Config b/doc/Config
index 12fa9f5..62ee61a 100644
--- a/doc/Config
+++ b/doc/Config
@@ -1,5 +1,5 @@
1# Texi2html configuration for GNU Pies documentation. -*- perl -*- 1# Texi2any configuration for pies documentation. -*- perl -*-
2# Copyright (C) 2009, 2010, 2013 Sergey Poznyakoff 2# Copyright (C) 2009, 2010, 2013, 2015 Sergey Poznyakoff
3# 3#
4# GNU Pies is free software; you can redistribute it and/or modify 4# GNU Pies is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
@@ -13,353 +13,151 @@
13# 13#
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with GNU Pies. If not, see <http://www.gnu.org/licenses/>. 15# along with GNU Pies. If not, see <http://www.gnu.org/licenses/>.
16use strict;
16 17
17$top_html_dir="/software/pies"; 18my $top_html_dir="/software/pies";
18$graphics_dir="$top_html_dir/graphics"; 19my $graphics_dir="$top_html_dir/graphics";
19 20
20## texi2html configuration
21
22# Show TOC in place of the @contents directive. 21# Show TOC in place of the @contents directive.
23$INLINE_CONTENTS = 1; 22set_from_init_file('INLINE_CONTENTS', 1);
24# Do not show Texinfo menus. 23# Do not show Texinfo menus.
25$SHOW_MENU = 0; 24set_from_init_file('SHOW_MENU', 0);
26# Inhibit output of CSS lines in page headers. 25# Inhibit output of CSS lines in page headers.
27$CSS_LINES=''; 26set_from_init_file('CSS_LINES', '');
28# Print footnotes at the end of each file (if the document is split).
29$SEPARATED_FOOTNOTES = 0;
30 27
31$BODYTEXT = ""; 28set_from_init_file('BODYTEXT', "");
32 29
33$EXTRA_HEAD=qq{ 30set_from_init_file('EXTRA_HEAD', qq{
34 <link rev="made" href="mailto:gray@gnu.org.ua"> 31 <link rev="made" href="mailto:gray\@gnu.org.ua">
35 <link rel="stylesheet" type="text/css" href="${top_html_dir}/gray.css"> 32 <link rel="stylesheet" type="text/css" href="${top_html_dir}/gray.css">
36 <link rel="stylesheet" type="text/css" href="${top_html_dir}/texi.css"> 33 <link rel="stylesheet" type="text/css" href="${top_html_dir}/texi.css">
37 <link rel="icon" type="image/png" href="/graphics/gnu-head-icon.png">}; 34 <link rel="icon" type="image/png" href="/graphics/gnu-head-icon.png">});
38 35
39$AFTER_BODY_OPEN=qq{ 36set_from_init_file('AFTER_BODY_OPEN', qq{
40<!--#include virtual="${top_html_dir}/inc/header.html" --> 37<!--#include virtual="${top_html_dir}/inc/header.html" -->
41<ul class="tabs"> 38<ul class="tabs">
42 <li><a href="${top_html_dir}/pies.html">Main</a></li> 39 <li><a href="${top_html_dir}/pies.html">Main</a></li>
43 <li><a href="${top_html_dir}/example.html">Examples</a></li> 40 <li><a href="${top_html_dir}/example.html">Examples</a></li>
44 <li><a href="${top_html_dir}/download.html">Downloads</a></li> 41 <li><a href="${top_html_dir}/download.html">Downloads</a></li>
45 <li><a class="active" href="${top_html_dir}/manual.html">Documentation</a></li> 42 <li><a class="active" href="${top_html_dir}/manual.html">Documentation</a></li>
46</ul>}; 43</ul>});
47
48$PRE_BODY_CLOSE="Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.";
49
50$format_map{'multitable'}='table class="multitable"';
51 44
52$SMALL_RULE = ''; 45sub gray_end_file($)
53$DEFAULT_RULE = ''; 46{
54$MIDDLE_RULE = ''; 47 my $self = shift;
55# This is output at the end of a section. 48 my $program_text = '';
56$BIG_RULE = ''; 49 if ($self->get_conf('PROGRAM_NAME_IN_FOOTER')) {
50 my $program_string = &{$self->{'format_program_string'}}($self);
51 $program_text = "<p>
52 $program_string
53</p>";
54 }
55 my $pre_body_close = $self->get_conf('PRE_BODY_CLOSE');
56 $pre_body_close = '' if (!defined($pre_body_close));
57 return "</div>
58<div class=\"copyright\">
59$program_text
60
61$pre_body_close
62</div>
63</div>
64</body>
65</html>
66";
67}
57 68
58# Use navigation icons 69texinfo_register_formatting_function('end_file', \&gray_end_file);
59$ICONS = 1;
60%ACTIVE_ICONS =
61 (
62 'Top', "$graphics_dir/top.png",
63 'Contents', "$graphics_dir/ctx.png",
64 'Overview', '',
65 'Index', "$graphics_dir/idx.png",
66 'This', '',
67 'Back', "$graphics_dir/left.png",
68 'FastBack', "$graphics_dir/bwd.png",
69 'Prev', "",
70 'Up', "$graphics_dir/up.png",
71 'Next', "$graphics_dir/right.png",
72 'NodeUp', "$graphics_dir/left.png",
73 'NodeNext', "$graphics_dir/up.png",
74 'NodePrev', "$graphics_dir/right.png",
75 'Following', "$graphics_dir/right.png",
76 'Forward', "$graphics_dir/right.png",
77 'FastForward', "$graphics_dir/fwd.png",
78 'About' , '',
79 'First', '',
80 'Last', '',
81 ' ', ''
82 );
83 70
84@SECTION_BUTTONS = 71set_from_init_file('PRE_BODY_CLOSE',
85 ( 72 'Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.');
86 \&gray_document_title,
87 \&gray_sec_ref,
88 'Back', 'Forward',
89 \&gray_chap_ref, 'FastBack', 'Up', 'FastForward',
90 \&gray_doc_ref,
91 'Contents', 'Index',
92 ' ','About',
93 );
94 73
95@SECTION_FOOTER_BUTTONS = @SECTION_BUTTONS; 74# Print generating program name at the bottom of a page.
96@NODE_FOOTER_BUTTONS = @SECTION_BUTTONS; 75set_from_init_file('PROGRAM_NAME_IN_FOOTER',1);
97 76
98# buttons for misc stuff 77# Disable horizontal bars
99@MISC_BUTTONS = ( 78set_from_init_file('DEFAULT_RULE', '');
100 \&gray_document_title, 79set_from_init_file('BIG_RULE', '');
101 'Contents',
102 'Index',
103 ' ',
104 'About'
105 );
106 80
81# Turn off footer buttons in section split
82set_from_init_file('SECTION_FOOTER_BUTTONS', undef);
83#set_from_init_file('SECTION_BUTTONS', undef);
84# Turn off navigation bars at the bottom of each section in chapter split mode
85set_from_init_file('HEADERS', undef)
86 if (get_conf('SPLIT') and (get_conf('SPLIT') eq 'chapter'));
87# Use navigation icons
107 88
108$print_section = \&gray_print_section; 89set_from_init_file('ICONS', 1);
109$print_navigation = \&gray_print_navigation;
110$print_head_navigation = \&gray_print_head_navigation;
111$print_foot_navigation = \&gray_print_foot_navigation;
112$print_About = \&gray_print_About;
113$cell = \&gray_multitable_cell;
114$print_page_foot = \&gray_print_page_foot;
115
116sub gray_multitable_cell($$)
117{
118 my $text = shift;
119 my $row_macro = shift;
120 90
121 $text =~ s/<p>//; 91set_from_init_file('ACTIVE_ICONS',
122 $text =~ s/<\/p>//;
123 if ($row_macro eq 'headitem')
124 { 92 {
125 return '<th>' . $text . '</th>'; 93 'Top' => "$graphics_dir/top.png",
126 } 94 'Contents' => "$graphics_dir/ctx.png",
127 return '<td>' . $text . '</td>'; 95 'Overview' => '',
128} 96 'Index' => "$graphics_dir/idx.png",
129 97 'This' => '',
130sub gray_print_About 98 'Back' => "$graphics_dir/left.png",
131{ 99 'FastBack' => "$graphics_dir/bwd.png",
132 return &$print_misc(@_) if (!($SPLIT eq '') or $SECTION_NAVIGATION); 100 'Prev' => "",
133} 101 'Up' => "$graphics_dir/up.png",
102 'Next' => "$graphics_dir/right.png",
103 'NodeUp' => "$graphics_dir/left.png",
104 'NodeNext' => "$graphics_dir/up.png",
105 'NodePrev' => "$graphics_dir/right.png",
106 'Following' => "$graphics_dir/right.png",
107 'Forward' => "$graphics_dir/right.png",
108 'FastForward' => "$graphics_dir/fwd.png",
109 'About' => '',
110 'First' => '',
111 'Last' => '',
112 ' ' => ''
113 });
134 114
135sub gray_split_status() 115sub gray_split_status()
136{ 116{
137 if ($SPLIT eq '') { 117 my $split = get_conf('SPLIT');
118 if ($split eq '') {
138 return ''; 119 return '';
139 } elsif ($SPLIT eq 'node') { 120 } elsif ($split eq 'node') {
140 return ' <span class="splitstatus">(split by node)</span>'; 121 return ' <span class="splitstatus">(split by node)</span>';
141 } elsif ($SPLIT eq 'section') { 122 } elsif ($split eq 'section') {
142 return ' <span class="splitstatus">(split by section)</span>'; 123 return ' <span class="splitstatus">(split by section)</span>';
143 } elsif ($SPLIT eq 'chapter') { 124 } elsif ($split eq 'chapter') {
144 return ' <span class="splitstatus">(split by chapter)</span>'; 125 return ' <span class="splitstatus">(split by chapter)</span>';
145 } 126 }
146} 127}
147 128
148sub gray_document_title($$) 129sub gray_document_title($$)
149{ 130{
150 my $fh = shift; 131 my $self = shift;
151 my $vertical = shift; 132 my $direction = shift;
152 my $status = gray_split_status(); 133 my $status = gray_split_status();
153 print $fh qq{<td class="title">} . $Texi2HTML::THISDOC{title} . $status . ":</td>\n";
154}
155 134
156sub gray_node_ref($$) 135 return q{<span class="title">} . $self->{title_string} . '</span>' .$status . q{<span class="title">:</span>};
157{
158 my $fh = shift;
159 my $vertical = shift;
160 print $fh qq{<span class="navtext">Node:</span>};
161} 136}
162 137
163sub gray_sec_ref($$) 138sub gray_sec_ref($$)
164{ 139{
165 my $fh = shift; 140 return q{<span class="navtext">Section:</span>};
166 my $vertical = shift;
167 print $fh qq{<span class="navtext">Section:</span>};
168} 141}
169 142
170sub gray_chap_ref($$) 143sub gray_chap_ref($$)
171{ 144{
172 my $fh = shift; 145 return q{<span class="navtext">Chapter:</span>};
173 my $vertical = shift;
174 print $fh qq{<span class="navtext">Chapter:</span>};
175}
176
177sub gray_doc_ref($$)
178{
179 my $fh = shift;
180 my $vertical = shift;
181 print $fh qq{<span class="navtext">Doc:</span>};
182}
183
184sub gray_print_navigation
185{
186 my $fh = shift;
187 my $buttons = shift;
188 my $vertical = shift;
189 my $spacing = 1;
190 my $class="nav";
191
192 print $fh qq{<table class="nav">\n};
193
194 print $fh "<tr>" unless $vertical;
195 for my $button (@$buttons)
196 {
197 if ($button =~ /^\@class=(.*)/) {
198 $class = "$class $1";
199 next;
200 }
201 print $fh "<tr>\n" if $vertical;
202 print $fh qq{<td class="$class">};
203
204 if (ref($button) eq 'CODE')
205 {
206 &$button($fh, $vertical);
207 }
208 elsif (ref($button) eq 'SCALAR')
209 {
210 print $fh "$$button" if defined($$button);
211 }
212 elsif (ref($button) eq 'ARRAY')
213 {
214 my $text = $button->[1];
215 my $button_href = $button->[0];
216 # verify that $button_href is simple text and text is a reference
217 if (defined($button_href) and !ref($button_href)
218 and defined($text) and (ref($text) eq 'SCALAR') and defined($$text))
219 { # use given text
220 if ($Texi2HTML::HREF{$button_href})
221 {
222 print $fh "" .
223 &$anchor('',
224 $Texi2HTML::HREF{$button_href},
225 $$text
226 )
227 ;
228 }
229 else
230 {
231 print $fh $$text;
232 }
233 }
234 }
235 elsif ($button eq ' ')
236 { # handle space button
237 print $fh
238 ($ICONS && $ACTIVE_ICONS{' '}) ?
239 &$button_icon_img($BUTTONS_NAME{$button}, $ACTIVE_ICONS{' '}) :
240 $NAVIGATION_TEXT{' '};
241 #next;
242 }
243 elsif ($Texi2HTML::HREF{$button})
244 { # button is active
245 my $btitle = $BUTTONS_GOTO{$button} ?
246 'title="' . $BUTTONS_GOTO{$button} . '"' : '';
247 if ($ICONS && $ACTIVE_ICONS{$button})
248 { # use icon
249 print $fh '' .
250 &$anchor('',
251 $Texi2HTML::HREF{$button},
252 &$button_icon_img($BUTTONS_NAME{$button},
253 $ACTIVE_ICONS{$button},
254 $Texi2HTML::SIMPLE_TEXT{$button}),
255 $btitle
256 );
257 }
258 else
259 { # use text
260 print $fh
261 '' .
262 &$anchor('',
263 $Texi2HTML::HREF{$button},
264 $NAVIGATION_TEXT{$button},
265 $btitle
266 );
267 }
268 }
269 else { # button is passive
270 print $fh '<span class="passive">' .
271 ($ICONS && $PASSIVE_ICONS{$button} ?
272 &$button_icon_img($BUTTONS_NAME{$button},
273 $PASSIVE_ICONS{$button},
274 $Texi2HTML::SIMPLE_TEXT{$button}) :
275
276 $NAVIGATION_TEXT{$button}) . '</span>';
277 }
278 print $fh "</td>\n";
279 print $fh "</tr>\n" if $vertical;
280 $class = "nav";
281 }
282 print $fh "</tr>" unless $vertical;
283 print $fh "</table>\n";
284}
285
286sub gray_print_head_navigation($$)
287{
288 my $fh = shift;
289 my $buttons = shift;
290
291 return if ($SPLIT eq '');
292 if ($VERTICAL_HEAD_NAVIGATION)
293 {
294 print $fh <<EOT;
295<table class='nav'>
296<tr>
297<td>
298EOT
299 }
300 main::print_lines($fh, $Texi2HTML::THIS_HEADER);
301 &$print_navigation($fh, $buttons, $VERTICAL_HEAD_NAVIGATION);
302 if ($VERTICAL_HEAD_NAVIGATION)
303 {
304 print $fh <<EOT;
305</td>
306<td>
307EOT
308 }
309}
310
311sub gray_print_foot_navigation
312{
313 my $fh = shift;
314
315 return if ($SPLIT eq '');
316 if ($VERTICAL_HEAD_NAVIGATION)
317 {
318 print $fh <<EOT;
319</td>
320</tr>
321</table>
322EOT
323 }
324} 146}
325 147
326sub gray_print_page_foot($)
327{
328 my $fh = shift;
329 my $program_string = program_string();
330 print $fh <<EOT;
331<div class="copyright">
332$program_string
333EOT
334 if (defined($PRE_BODY_CLOSE) && $PRE_BODY_CLOSE) {
335 print $fh "<p>$PRE_BODY_CLOSE</p>";
336 }
337 print $fh <<EOT;
338</div>
339</body>
340</html>
341EOT
342}
343
344sub gray_print_section
345{
346 my $fh = shift;
347 my $first_in_page = shift;
348 my $previous_is_top = shift;
349 my $buttons = \@SECTION_BUTTONS;
350
351 if ($first_in_page) {
352 &$print_head_navigation($fh, $buttons)
353 } else {
354 main::print_lines($fh, $Texi2HTML::THIS_HEADER);
355 }
356 my $nw = main::print_lines($fh);
357 if (defined $SPLIT
358 and ($SPLIT eq 'node')) {
359 &$print_foot_navigation($fh);
360 print $fh "$SMALL_RULE\n";
361 &$print_navigation($fh, \@NODE_FOOTER_BUTTONS) if (!defined($WORDS_IN_PAGE) or (defined ($nw)
362 and $nw >= $WORDS_IN_PAGE));
363 }
364}
365 148
149my @gray_buttons = (\&gray_document_title, ' ',
150 \&gray_sec_ref, 'Back', 'Forward', ' ',
151 \&gray_chap_ref,
152 'FastBack', ' ', 'Up', ' ', 'FastForward', ' ',
153 'Contents', 'Index' );
154
155set_from_init_file('SECTION_BUTTONS', \@gray_buttons);
156set_from_init_file('CHAPTER_BUTTONS', \@gray_buttons);
157set_from_init_file('MISC_BUTTONS',
158 [\&gray_document_title,
159 'Contents',
160 'Index',
161 ' ',
162 'About'
163 ]);
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 3ec4214..ce7ce64 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -42,7 +42,7 @@ check-options:
42 's/@opindex *\([^@,]*\).*/\1/p' \ 42 's/@opindex *\([^@,]*\).*/\1/p' \
43 $(top_srcdir)/src/cmdline.opt -- \ 43 $(top_srcdir)/src/cmdline.opt -- \
44 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ 44 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
45 $(info_TEXINFOS) 45 $(info_TEXINFOS)
46 46
47check-config: 47check-config:
48 @$(CHECK_DOCS) 'configuration statements' \ 48 @$(CHECK_DOCS) 'configuration statements' \
@@ -50,7 +50,7 @@ check-config:
50 's/@deffnx\{0,1\} {Config} *\([^@,]*\).*/\1/p' \ 50 's/@deffnx\{0,1\} {Config} *\([^@,]*\).*/\1/p' \
51 $(top_srcdir)/src/pies.c -- \ 51 $(top_srcdir)/src/pies.c -- \
52 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \ 52 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
53 $(info_TEXINFOS) 53 $(info_TEXINFOS)
54 54
55check-sub-config: 55check-sub-config:
56 @sed -n '/pies_keywords\[\] *= *{/,/^}/{p}' ../src/pies.c|tr '\n{' ' \n'|sed -n '/grecs_type_section/s/"\([^"]*\)".*grecs_type_section,[^,]*,[^,]*,[^,]*,[^,]*, *\(.*\) *}.*/\1 \2/p' | \ 56 @sed -n '/pies_keywords\[\] *= *{/,/^}/{p}' ../src/pies.c|tr '\n{' ' \n'|sed -n '/grecs_type_section/s/"\([^"]*\)".*grecs_type_section,[^,]*,[^,]*,[^,]*,[^,]*, *\(.*\) *}.*/\1 \2/p' | \
@@ -66,7 +66,7 @@ check-sub-config:
66all-check-docs: imprimatur-basic-checks \ 66all-check-docs: imprimatur-basic-checks \
67 check-options check-config check-sub-config 67 check-options check-config check-sub-config
68 68
69check-docs: 69check-docs:
70 @$(MAKE) -k all-check-docs 70 @$(MAKE) -k all-check-docs
71 71
72# 72#
@@ -74,9 +74,10 @@ master-menu: imprimatur-master-menu
74untabify: imprimatur-untabify 74untabify: imprimatur-untabify
75final: imprimatur-final 75final: imprimatur-final
76 76
77GENDOCS=gendocs.sh 77GENDOCS=$(srcdir)/gendocs.sh
78EXTRA_DIST += gendocs.sh
78 79
79TEXI2DVI=texi2dvi -t '@set $(RENDITION)' -E 80TEXI2DVI=texi2dvi -t '@set $(RENDITION)' -I $(top_srcdir)/imprimatur
80 81
81.PHONY: manual man-tar 82.PHONY: manual man-tar
82# Make sure you set TEXINPUTS. 83# Make sure you set TEXINPUTS.
@@ -86,8 +87,7 @@ manual:
86 TEXINPUTS=$(srcdir):$(top_srcdir)/build-aux:$(TEXINPUTS) \ 87 TEXINPUTS=$(srcdir):$(top_srcdir)/build-aux:$(TEXINPUTS) \
87 MAKEINFO="$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS)" \ 88 MAKEINFO="$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS)" \
88 TEXI2DVI="$(TEXI2DVI) -t @finalout" \ 89 TEXI2DVI="$(TEXI2DVI) -t @finalout" \
89 TEXI2HTML="texi2html $(AM_MAKEINFOFLAGS)" \ 90 $(GENDOCS) --no-copy-images $(PACKAGE) '$(PACKAGE_NAME) manual'
90 $(GENDOCS) --texi2html $(PACKAGE) '$(PACKAGE_NAME) manual'
91 91
92manual.tar.bz2: manual 92manual.tar.bz2: manual
93 tar cfj manual.tar.bz2 manual 93 tar cfj manual.tar.bz2 manual
diff --git a/doc/gendocs.sh b/doc/gendocs.sh
new file mode 100755
index 0000000..8ac3a06
--- /dev/null
+++ b/doc/gendocs.sh
@@ -0,0 +1,490 @@
1#!/bin/sh -e
2# gendocs.sh -- generate a GNU manual in many formats. This script is
3# mentioned in maintain.texi. See the help message below for usage details.
4
5scriptversion=2015-02-28.17
6
7# Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
8# Free Software Foundation, Inc.
9#
10# This program is free software: you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 3 of the License, or
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with this program. If not, see <http://www.gnu.org/licenses/>.
22#
23# Original author: Mohit Agarwal.
24# Send bug reports and any other correspondence to bug-texinfo@gnu.org.
25#
26# The latest version of this script, and the companion template, is
27# available from Texinfo CVS:
28# http://savannah.gnu.org/cgi-bin/viewcvs/texinfo/texinfo/util/gendocs.sh
29# http://savannah.gnu.org/cgi-bin/viewcvs/texinfo/texinfo/util/gendocs_template
30#
31# An up-to-date copy is also maintained in Gnulib (gnu.org/software/gnulib).
32
33# TODO:
34# - image importation was only implemented for HTML generated by
35# makeinfo. But it should be simple enough to adjust.
36# - images are not imported in the source tarball. All the needed
37# formats (PDF, PNG, etc.) should be included.
38
39prog=`basename "$0"`
40srcdir=`pwd`
41
42scripturl="http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/texinfo/texinfo/util/gendocs.sh"
43templateurl="http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/texinfo/texinfo/util/gendocs_template"
44
45: ${SETLANG="env LANG= LC_MESSAGES= LC_ALL= LANGUAGE="}
46: ${MAKEINFO="makeinfo"}
47: ${TEXI2DVI="texi2dvi -t @finalout"}
48: ${DOCBOOK2HTML="docbook2html"}
49: ${DOCBOOK2PDF="docbook2pdf"}
50: ${DOCBOOK2TXT="docbook2txt"}
51: ${GENDOCS_TEMPLATE_DIR="."}
52: ${PERL='perl'}
53: ${TEXI2HTML="texi2html"}
54unset CDPATH
55unset use_texi2html
56
57version="gendocs.sh $scriptversion
58
59Copyright 2013 Free Software Foundation, Inc.
60There is NO warranty. You may redistribute this software
61under the terms of the GNU General Public License.
62For more information about these matters, see the files named COPYING."
63
64usage="Usage: $prog [OPTION]... PACKAGE MANUAL-TITLE
65
66Generate output in various formats from PACKAGE.texinfo (or .texi or
67.txi) source. See the GNU Maintainers document for a more extensive
68discussion:
69 http://www.gnu.org/prep/maintain_toc.html
70
71Options:
72 --email ADR use ADR as contact in generated web pages; always give this.
73
74 -s SRCFILE read Texinfo from SRCFILE, instead of PACKAGE.{texinfo|texi|txi}
75 -o OUTDIR write files into OUTDIR, instead of manual/.
76 -I DIR append DIR to the Texinfo search path.
77 --common ARG pass ARG in all invocations.
78 --html ARG pass ARG to makeinfo or texi2html for HTML targets.
79 --info ARG pass ARG to makeinfo for Info, instead of --no-split.
80 --no-ascii skip generating the plain text output.
81 --no-copy-images
82 don't try to copy images referenced by img HTML tags,
83 --source ARG include ARG in tar archive of sources.
84 --split HOW make split HTML by node, section, chapter; default node.
85
86 --texi2html use texi2html to make HTML target, with all split versions.
87 --docbook convert through DocBook too (xml, txt, html, pdf).
88
89 --help display this help and exit successfully.
90 --version display version information and exit successfully.
91
92Simple example: $prog --email bug-gnu-emacs@gnu.org emacs \"GNU Emacs Manual\"
93
94Typical sequence:
95 cd PACKAGESOURCE/doc
96 wget \"$scripturl\"
97 wget \"$templateurl\"
98 $prog --email BUGLIST MANUAL \"GNU MANUAL - One-line description\"
99
100Output will be in a new subdirectory \"manual\" (by default;
101use -o OUTDIR to override). Move all the new files into your web CVS
102tree, as explained in the Web Pages node of maintain.texi.
103
104Please use the --email ADDRESS option so your own bug-reporting
105address will be used in the generated HTML pages.
106
107MANUAL-TITLE is included as part of the HTML <title> of the overall
108manual/index.html file. It should include the name of the package being
109documented. manual/index.html is created by substitution from the file
110$GENDOCS_TEMPLATE_DIR/gendocs_template. (Feel free to modify the
111generic template for your own purposes.)
112
113If you have several manuals, you'll need to run this script several
114times with different MANUAL values, specifying a different output
115directory with -o each time. Then write (by hand) an overall index.html
116with links to them all.
117
118If a manual's Texinfo sources are spread across several directories,
119first copy or symlink all Texinfo sources into a single directory.
120(Part of the script's work is to make a tar.gz of the sources.)
121
122As implied above, by default monolithic Info files are generated.
123If you want split Info, or other Info options, use --info to override.
124
125You can set the environment variables MAKEINFO, TEXI2DVI, TEXI2HTML,
126and PERL to control the programs that get executed, and
127GENDOCS_TEMPLATE_DIR to control where the gendocs_template file is
128looked for. With --docbook, the environment variables DOCBOOK2HTML,
129DOCBOOK2PDF, and DOCBOOK2TXT are also consulted.
130
131By default, makeinfo and texi2dvi are run in the default (English)
132locale, since that's the language of most Texinfo manuals. If you
133happen to have a non-English manual and non-English web site, see the
134SETLANG setting in the source.
135
136Email bug reports or enhancement requests to bug-texinfo@gnu.org.
137"
138
139MANUAL_TITLE=
140PACKAGE=
141EMAIL=webmasters@gnu.org # please override with --email
142commonarg= # passed to all makeinfo/texi2html invcations.
143dirargs= # passed to all tools (-I dir).
144dirs= # -I's directories.
145htmlarg=
146infoarg=--no-split
147generate_ascii=true
148outdir=manual
149source_extra=
150split=default
151srcfile=
152no_copy_images=
153
154while test $# -gt 0; do
155 case $1 in
156 -s) shift; srcfile=$1;;
157 -o) shift; outdir=$1;;
158 -I) shift; dirargs="$dirargs -I '$1'"; dirs="$dirs $1";;
159 --common) shift; commonarg=$1;;
160 --docbook) docbook=yes;;
161 --email) shift; EMAIL=$1;;
162 --html) shift; htmlarg=$1;;
163 --info) shift; infoarg=$1;;
164 --no-ascii) generate_ascii=false;;
165 --source) shift; source_extra=$1;;
166 --split) shift; split=$1;;
167 --texi2html) use_texi2html=1;;
168 --no-copy-images) no_copy_images=1;;
169 --help) echo "$usage"; exit 0;;
170 --version) echo "$version"; exit 0;;
171 -*)
172 echo "$0: Unknown option \`$1'." >&2
173 echo "$0: Try \`--help' for more information." >&2
174 exit 1;;
175 *)
176 if test -z "$PACKAGE"; then
177 PACKAGE=$1
178 elif test -z "$MANUAL_TITLE"; then
179 MANUAL_TITLE=$1
180 else
181 echo "$0: extra non-option argument \`$1'." >&2
182 exit 1
183 fi;;
184 esac
185 shift
186done
187
188# makeinfo uses the dirargs, but texi2dvi doesn't.
189commonarg=" $dirargs $commonarg"
190
191# For most of the following, the base name is just $PACKAGE
192base=$PACKAGE
193
194if test -n "$srcfile"; then
195 # but here, we use the basename of $srcfile
196 base=`basename "$srcfile"`
197 case $base in
198 *.txi|*.texi|*.texinfo) base=`echo "$base"|sed 's/\.[texinfo]*$//'`;;
199 esac
200 PACKAGE=$base
201elif test -s "$srcdir/$PACKAGE.texinfo"; then
202 srcfile=$srcdir/$PACKAGE.texinfo
203elif test -s "$srcdir/$PACKAGE.texi"; then
204 srcfile=$srcdir/$PACKAGE.texi
205elif test -s "$srcdir/$PACKAGE.txi"; then
206 srcfile=$srcdir/$PACKAGE.txi
207else
208 echo "$0: cannot find .texinfo or .texi or .txi for $PACKAGE in $srcdir." >&2
209 exit 1
210fi
211
212if test ! -r $GENDOCS_TEMPLATE_DIR/gendocs_template; then
213 echo "$0: cannot read $GENDOCS_TEMPLATE_DIR/gendocs_template." >&2
214 echo "$0: it is available from $templateurl." >&2
215 exit 1
216fi
217
218# Function to return size of $1 in something resembling kilobytes.
219calcsize()
220{
221 size=`ls -ksl $1 | awk '{print $1}'`
222 echo $size
223}
224
225# copy_images OUTDIR HTML-FILE...
226# -------------------------------
227# Copy all the images needed by the HTML-FILEs into OUTDIR. Look
228# for them in the -I directories.
229copy_images()
230{
231 test -n "$no_copy_images" && return
232 local odir
233 odir=$1
234 shift
235 $PERL -n -e "
236BEGIN {
237 \$me = '$prog';
238 \$odir = '$odir';
239 @dirs = qw($dirs);
240}
241" -e '
242/<img src="(.*?)"/g && ++$need{$1};
243
244END {
245 #print "$me: @{[keys %need]}\n"; # for debugging, show images found.
246 FILE: for my $f (keys %need) {
247 for my $d (@dirs) {
248 if (-f "$d/$f") {
249 use File::Basename;
250 my $dest = dirname ("$odir/$f");
251 #
252 use File::Path;
253 -d $dest || mkpath ($dest)
254 || die "$me: cannot mkdir $dest: $!\n";
255 #
256 use File::Copy;
257 copy ("$d/$f", $dest)
258 || die "$me: cannot copy $d/$f to $dest: $!\n";
259 next FILE;
260 }
261 }
262 die "$me: $ARGV: cannot find image $f\n";
263 }
264}
265' -- "$@" || exit 1
266}
267
268case $outdir in
269 /*) abs_outdir=$outdir;;
270 *) abs_outdir=$srcdir/$outdir;;
271esac
272
273echo "Making output for $srcfile"
274echo " in `pwd`"
275mkdir -p "$outdir/"
276
277cmd="$SETLANG $MAKEINFO -o $PACKAGE.info $commonarg $infoarg \"$srcfile\""
278echo "Generating info... ($cmd)"
279rm -f $PACKAGE.info* # get rid of any strays
280eval "$cmd"
281tar czf "$outdir/$PACKAGE.info.tar.gz" $PACKAGE.info*
282ls -l "$outdir/$PACKAGE.info.tar.gz"
283info_tgz_size=`calcsize "$outdir/$PACKAGE.info.tar.gz"`
284# do not mv the info files, there's no point in having them available
285# separately on the web.
286
287cmd="$SETLANG $TEXI2DVI $dirargs \"$srcfile\""
288printf "\nGenerating dvi... ($cmd)\n"
289eval "$cmd"
290# compress/finish dvi:
291gzip -f -9 $PACKAGE.dvi
292dvi_gz_size=`calcsize $PACKAGE.dvi.gz`
293mv $PACKAGE.dvi.gz "$outdir/"
294ls -l "$outdir/$PACKAGE.dvi.gz"
295
296cmd="$SETLANG $TEXI2DVI --pdf $dirargs \"$srcfile\""
297printf "\nGenerating pdf... ($cmd)\n"
298eval "$cmd"
299pdf_size=`calcsize $PACKAGE.pdf`
300mv $PACKAGE.pdf "$outdir/"
301ls -l "$outdir/$PACKAGE.pdf"
302
303if $generate_ascii; then
304 opt="-o $PACKAGE.txt --no-split --no-headers $commonarg"
305 cmd="$SETLANG $MAKEINFO $opt \"$srcfile\""
306 printf "\nGenerating ascii... ($cmd)\n"
307 eval "$cmd"
308 ascii_size=`calcsize $PACKAGE.txt`
309 gzip -f -9 -c $PACKAGE.txt >"$outdir/$PACKAGE.txt.gz"
310 ascii_gz_size=`calcsize "$outdir/$PACKAGE.txt.gz"`
311 mv $PACKAGE.txt "$outdir/"
312 ls -l "$outdir/$PACKAGE.txt" "$outdir/$PACKAGE.txt.gz"
313fi
314
315# Split HTML at level $2 using program $1. Used for texi2html.
316html_split()
317{
318 opt="--split=$2 --node-files $commonarg $htmlarg"
319 cmd="$SETLANG $1 --output $PACKAGE.html $opt \"$srcfile\""
320 printf "\nGenerating html by $2... ($cmd)\n"
321 eval "$cmd"
322 split_html_dir=$PACKAGE.html
323 (
324 cd ${split_html_dir} || exit 1
325 if test ! -e index.html; then
326 if test -f ${PACKAGE}.html; then
327 ln -sf ${PACKAGE}.html index.html
328 else
329 echo >&2 "$0: ${split_html_dir}/${PACKAGE}.html does not exist"
330 fi
331 fi
332 tar -czf "$abs_outdir/${PACKAGE}.html_$2.tar.gz" -- *.html
333 )
334 eval html_$2_tgz_size=`calcsize "$outdir/${PACKAGE}.html_$2.tar.gz"`
335 rm -f "$outdir"/html_$2/*.html
336 mkdir -p "$outdir/html_$2/"
337 mv ${split_html_dir}/*.html "$outdir/html_$2/"
338 rmdir ${split_html_dir}
339}
340
341if test -z "$use_texi2html"; then
342 opt="--no-split --html -o $PACKAGE.html $commonarg $htmlarg"
343 cmd="$SETLANG $MAKEINFO $opt \"$srcfile\""
344 printf "\nGenerating monolithic html... ($cmd)\n"
345 rm -rf $PACKAGE.html # in case a directory is left over
346 eval "$cmd"
347 html_mono_size=`calcsize $PACKAGE.html`
348 gzip -f -9 -c $PACKAGE.html >"$outdir/$PACKAGE.html.gz"
349 html_mono_gz_size=`calcsize "$outdir/$PACKAGE.html.gz"`
350 copy_images "$outdir/" $PACKAGE.html
351 mv $PACKAGE.html "$outdir/"
352 ls -l "$outdir/$PACKAGE.html" "$outdir/$PACKAGE.html.gz"
353
354 version=`makeinfo --version|sed -n '1s/.* \([0-9][0-9]*\)\.[0-9.]*/\1/p'`
355 case $version in
356 [0-9]*) ;;
357 *) version=4;;
358 esac
359 # Before Texinfo 5.0, makeinfo did not accept a --split=HOW option,
360 # it just always split by node. So if we're splitting by node anyway,
361 # leave it out.
362 if test $version -lt 5 -o "x$split" != xdefault; then
363 split_arg=--split=$split
364 opt="--html -o $PACKAGE.html $split_arg $commonarg $htmlarg"
365 cmd="$SETLANG $MAKEINFO $opt \"$srcfile\""
366 printf "\nGenerating html by $split... ($cmd)\n"
367 eval "$cmd"
368 split_html_dir=$PACKAGE.html
369 copy_images $split_html_dir/ $split_html_dir/*.html
370 (
371 cd $split_html_dir || exit 1
372 tar -czf "$abs_outdir/$PACKAGE.html_$split.tar.gz" -- *
373 )
374 eval \
375 html_${split}_tgz_size=`calcsize "$outdir/$PACKAGE.html_$split.tar.gz"`
376 rm -rf "$outdir/html_$split/"
377 mv $split_html_dir "$outdir/html_$split/"
378 du -s "$outdir/html_$split/"
379 ls -l "$outdir/$PACKAGE.html_$split.tar.gz"
380 CONDS="/%%IF *HTML_SECTION%%/,/%%ENDIF *HTML_SECTION%%/d;\
381 /%%IF *HTML_CHAPTER%%/,/%%ENDIF *HTML_CHAPTER%%/d"
382 else
383 html_split "$MAKEINFO --html" node
384 html_split "$MAKEINFO --html" chapter
385 html_split "$MAKEINFO --html" section
386 # should take account of --split here.
387 CONDS="/%%ENDIF.*%%/d;/%%IF *HTML_SECTION%%/d;/%%IF *HTML_CHAPTER%%/d"
388 fi
389else # use texi2html:
390 opt="--output $PACKAGE.html $commonarg $htmlarg"
391 cmd="$SETLANG $TEXI2HTML $opt \"$srcfile\""
392 printf "\nGenerating monolithic html with texi2html... ($cmd)\n"
393 rm -rf $PACKAGE.html # in case a directory is left over
394 eval "$cmd"
395 html_mono_size=`calcsize $PACKAGE.html`
396 gzip -f -9 -c $PACKAGE.html >"$outdir/$PACKAGE.html.gz"
397 html_mono_gz_size=`calcsize "$outdir/$PACKAGE.html.gz"`
398 mv $PACKAGE.html "$outdir/"
399
400 html_split "$TEXI2HTML" node
401 html_split "$TEXI2HTML" chapter
402 html_split "$TEXI2HTML" section
403 CONDS="/%%ENDIF.*%%/d;/%%IF *HTML_SECTION%%/d;/%%IF *HTML_CHAPTER%%/d"
404fi
405
406printf "\nMaking .tar.gz for sources...\n"
407d=`dirname $srcfile`
408(
409 cd "$d"
410 srcfiles=`ls -d *.texinfo *.texi *.txi *.eps $source_extra 2>/dev/null` || true
411 tar czfh "$abs_outdir/$PACKAGE.texi.tar.gz" $srcfiles
412 ls -l "$abs_outdir/$PACKAGE.texi.tar.gz"
413)
414texi_tgz_size=`calcsize "$outdir/$PACKAGE.texi.tar.gz"`
415
416if test -n "$docbook"; then
417 opt="-o - --docbook $commonarg"
418 cmd="$SETLANG $MAKEINFO $opt \"$srcfile\" >${srcdir}/$PACKAGE-db.xml"
419 printf "\nGenerating docbook XML... ($cmd)\n"
420 eval "$cmd"
421 docbook_xml_size=`calcsize $PACKAGE-db.xml`
422 gzip -f -9 -c $PACKAGE-db.xml >"$outdir/$PACKAGE-db.xml.gz"
423 docbook_xml_gz_size=`calcsize "$outdir/$PACKAGE-db.xml.gz"`
424 mv $PACKAGE-db.xml "$outdir/"
425
426 split_html_db_dir=html_node_db
427 opt="$commonarg -o $split_html_db_dir"
428 cmd="$DOCBOOK2HTML $opt \"${outdir}/$PACKAGE-db.xml\""
429 printf "\nGenerating docbook HTML... ($cmd)\n"
430 eval "$cmd"
431 (
432 cd ${split_html_db_dir} || exit 1
433 tar -czf "$abs_outdir/${PACKAGE}.html_node_db.tar.gz" -- *.html
434 )
435 html_node_db_tgz_size=`calcsize "$outdir/${PACKAGE}.html_node_db.tar.gz"`
436 rm -f "$outdir"/html_node_db/*.html
437 mkdir -p "$outdir/html_node_db"
438 mv ${split_html_db_dir}/*.html "$outdir/html_node_db/"
439 rmdir ${split_html_db_dir}
440
441 cmd="$DOCBOOK2TXT \"${outdir}/$PACKAGE-db.xml\""
442 printf "\nGenerating docbook ASCII... ($cmd)\n"
443 eval "$cmd"
444 docbook_ascii_size=`calcsize $PACKAGE-db.txt`
445 mv $PACKAGE-db.txt "$outdir/"
446
447 cmd="$DOCBOOK2PDF \"${outdir}/$PACKAGE-db.xml\""
448 printf "\nGenerating docbook PDF... ($cmd)\n"
449 eval "$cmd"
450 docbook_pdf_size=`calcsize $PACKAGE-db.pdf`
451 mv $PACKAGE-db.pdf "$outdir/"
452fi
453
454printf "\nMaking index file...\n"
455
456curdate=`$SETLANG date '+%B %d, %Y'`
457sed \
458 -e "s!%%TITLE%%!$MANUAL_TITLE!g" \
459 -e "s!%%EMAIL%%!$EMAIL!g" \
460 -e "s!%%PACKAGE%%!$PACKAGE!g" \
461 -e "s!%%DATE%%!$curdate!g" \
462 -e "s!%%HTML_MONO_SIZE%%!$html_mono_size!g" \
463 -e "s!%%HTML_MONO_GZ_SIZE%%!$html_mono_gz_size!g" \
464 -e "s!%%HTML_NODE_TGZ_SIZE%%!$html_node_tgz_size!g" \
465 -e "s!%%HTML_SECTION_TGZ_SIZE%%!$html_section_tgz_size!g" \
466 -e "s!%%HTML_CHAPTER_TGZ_SIZE%%!$html_chapter_tgz_size!g" \
467 -e "s!%%INFO_TGZ_SIZE%%!$info_tgz_size!g" \
468 -e "s!%%DVI_GZ_SIZE%%!$dvi_gz_size!g" \
469 -e "s!%%PDF_SIZE%%!$pdf_size!g" \
470 -e "s!%%ASCII_SIZE%%!$ascii_size!g" \
471 -e "s!%%ASCII_GZ_SIZE%%!$ascii_gz_size!g" \
472 -e "s!%%TEXI_TGZ_SIZE%%!$texi_tgz_size!g" \
473 -e "s!%%DOCBOOK_HTML_NODE_TGZ_SIZE%%!$html_node_db_tgz_size!g" \
474 -e "s!%%DOCBOOK_ASCII_SIZE%%!$docbook_ascii_size!g" \
475 -e "s!%%DOCBOOK_PDF_SIZE%%!$docbook_pdf_size!g" \
476 -e "s!%%DOCBOOK_XML_SIZE%%!$docbook_xml_size!g" \
477 -e "s!%%DOCBOOK_XML_GZ_SIZE%%!$docbook_xml_gz_size!g" \
478 -e "s,%%SCRIPTURL%%,$scripturl,g" \
479 -e "s!%%SCRIPTNAME%%!$prog!g" \
480 -e "$CONDS" \
481$GENDOCS_TEMPLATE_DIR/gendocs_template >"$outdir/index.html"
482
483echo "Done, see $outdir/ subdirectory for new files."
484
485# Local variables:
486# eval: (add-hook 'write-file-hooks 'time-stamp)
487# time-stamp-start: "scriptversion="
488# time-stamp-format: "%:y-%02m-%02d.%02H"
489# time-stamp-end: "$"
490# End:
diff --git a/doc/gendocs_template b/doc/gendocs_template
index 1bd43b1..2f58d5a 100755..100644
--- a/doc/gendocs_template
+++ b/doc/gendocs_template
@@ -12,7 +12,7 @@
12 <link rel="icon" type="image/png" href="/graphics/gnu-head-icon.png" /> 12 <link rel="icon" type="image/png" href="/graphics/gnu-head-icon.png" />
13</head> 13</head>
14<body> 14<body>
15<!--#include virtual="inc/header.html" --> 15<!--#include virtual="inc/header.html" -->
16<ul class='tabs'> 16<ul class='tabs'>
17 <li><a href="pies.html">Main</a></li> 17 <li><a href="pies.html">Main</a></li>
18 <li><a href="example.html">Examples</a></li> 18 <li><a href="example.html">Examples</a></li>
@@ -24,7 +24,7 @@
24<p>The manual for <b>%%PACKAGE%%</b> is available in the following formats:</p> 24<p>The manual for <b>%%PACKAGE%%</b> is available in the following formats:</p>
25 25
26<ul> 26<ul>
27 <li><a href="manual/%%PACKAGE%%.html">HTML 27 <li><a href="manual/%%PACKAGE%%.html">HTML
28 (%%HTML_MONO_SIZE%%K bytes)</a> - entirely on one web page.</li> 28 (%%HTML_MONO_SIZE%%K bytes)</a> - entirely on one web page.</li>
29 <li><a href="manual/html_node/index.html">HTML</a> - with one web page per 29 <li><a href="manual/html_node/index.html">HTML</a> - with one web page per
30 node.</li> 30 node.</li>
@@ -37,7 +37,7 @@
37 chapter.</li> 37 chapter.</li>
38%%ENDIF HTML_CHAPTER%% 38%%ENDIF HTML_CHAPTER%%
39 <li><a href="manual/%%PACKAGE%%.html.gz">HTML compressed 39 <li><a href="manual/%%PACKAGE%%.html.gz">HTML compressed
40 (%%HTML_MONO_GZ_SIZE%%K gzipped characters)</a> - entirely on 40 (%%HTML_MONO_GZ_SIZE%%K gzipped characters)</a> - entirely on
41 one web page.</li> 41 one web page.</li>
42 <li><a href="manual/%%PACKAGE%%.html_node.tar.gz">HTML compressed 42 <li><a href="manual/%%PACKAGE%%.html_node.tar.gz">HTML compressed
43 (%%HTML_NODE_TGZ_SIZE%%K gzipped tar file)</a> - 43 (%%HTML_NODE_TGZ_SIZE%%K gzipped tar file)</a> -
@@ -60,8 +60,6 @@
60 (%%ASCII_GZ_SIZE%%K gzipped characters)</a>.</li> 60 (%%ASCII_GZ_SIZE%%K gzipped characters)</a>.</li>
61 <li><a href="manual/%%PACKAGE%%.dvi.gz">TeX dvi file 61 <li><a href="manual/%%PACKAGE%%.dvi.gz">TeX dvi file
62 (%%DVI_GZ_SIZE%%K characters gzipped)</a>.</li> 62 (%%DVI_GZ_SIZE%%K characters gzipped)</a>.</li>
63 <li><a href="manual/%%PACKAGE%%.ps.gz">PostScript file
64 (%%PS_GZ_SIZE%%K characters gzipped)</a>.</li>
65 <li><a href="manual/%%PACKAGE%%.pdf">PDF file 63 <li><a href="manual/%%PACKAGE%%.pdf">PDF file
66 (%%PDF_SIZE%%K characters)</a>.</li> 64 (%%PDF_SIZE%%K characters)</a>.</li>
67 <li><a href="manual/%%PACKAGE%%.texi.tar.gz">Texinfo source 65 <li><a href="manual/%%PACKAGE%%.texi.tar.gz">Texinfo source
diff --git a/doc/pies.texi b/doc/pies.texi
index 3bcb349..46e1b91 100644
--- a/doc/pies.texi
+++ b/doc/pies.texi
@@ -2666,7 +2666,7 @@ Restart components named in the command line. @xref{pies-restart}.
2666@item --version 2666@item --version
2667Display program version and license information and exit. 2667Display program version and license information and exit.
2668 2668
2669@xopindex{undefine} 2669@opsummary{undefine}
2670@item --undefine=@var{sym} 2670@item --undefine=@var{sym}
2671@itemx -U @var{sym} 2671@itemx -U @var{sym}
2672Undefine symbol @var{sym}. @xref{Preprocessor}. 2672Undefine symbol @var{sym}. @xref{Preprocessor}.

Return to:

Send suggestions and report system problems to the System administrator.