1 .\" Hey, Emacs! This is an -*- nroff -*- source file.
2 .\" Install-info and this manpage are Copyright 1994 by Ian Jackson.
4 .\" This is free software; see the GNU General Public Licence version 2
5 .\" or later for copying conditions. There is NO warranty.
6 .TH INSTALL-INFO 8 "29th November 1995" "Debian Project" "Debian GNU/Linux"
8 install\-info \- create or update entry in Info directory
11 [\-\-version] [\-\-help] [\-\-debug] [\-\-maxwidth=nnn]
12 [\-\-section regexp title] [\-\-infodir=xxx] [\-\-align=nnn]
13 [\-\-quiet] [\-\-menuentry=xxx] [\-\-description=xxx] [\-\-remove]
18 makes, updates or removes entries in the Info directory, the
20 file. When updating or creating entries, if no description is
21 specified on the command line or in the Info file it attempts to guess
22 a description from the contents of the file.
24 See the description of the
26 option for details of where the entry will be placed and a description
27 of the expected format of the
32 .BI "[\-\-] " filename
33 Gives the filename of the Info file whose menu entry is to be created,
34 updated or removed. The basename of this filename is used as the
35 referent of the menu entry which is created. This file must therefore
36 exist (or be about to be installed, or have previously existed when
37 removing an entry) in the same directory as the
47 it is taken to refer to a file compressed with GNU gzip; if it doesn't
48 exist, but a corresponding
50 does, the latter is used instead.
52 When adding or updating entries the file must exist at the path
53 specified (possibly with an additional
58 Specifies that the entry for the file
60 is to be removed; by default entries are created or updated.
62 If the removal results in a section becoming empty the section heading
63 (and the spare blank line) will be removed as well, unless this is the
64 last section in the file or
68 option for details about the expected format of the
72 If there are several suitable entries in the
74 file only those in the first matching contiguous group will be removed
75 and the others silently ignored.
77 It is not an error for no suitable entry to be found, though
79 will issue a warning unless the
86 .BR \-\-maxwidth ", " \-\-align " and " \-\-calign
87 formatting options are silently ignored.
89 .BI "\-\-section " "regexp title"
90 Specifies that, if a new entry is to be made, it should be placed in a
93 file whose title matches
95 If no such section exists one will be created as the second last
96 section in the file (see below), with title
98 A section is a part of the
100 menu delimited by blank lines; the first line is assumed to be the
103 If a new entry is to be created
105 will attempt to insert it within the section according in alphabetic
106 order; if the entries in the section aren't already sorted the new
107 location within the section will be unpredictable. The order of
108 existing entries will not be changed.
110 The default is to append new entries to the end of the file. The last
111 section (even if it only consists of the title line) should always
112 exist, to ensure that new sections are created in the right place.
113 The final section should be titled to reflect the fact that Info files
114 with no more well specified location are appended to it.
116 If there is already an entry for the Info file being installed it is
117 replaced in situ with the new entry.
119 If a section is specified when removing an entry the section is
120 ignored and a warning is issued.
122 If a section is requested when adding an entry but the file contains
123 no section headings at all then
125 will create both the requested section and a Miscellaneous section at
128 .BI \-\-infodir= infodir
131 file is, and the installed copy of the new Info file was, is or will
138 Specifies that the first line of the description should be indented at
141 characters; extra spaces will be added as required. If necessary
142 because of the length of the
144 menu entry details it may be offset more. The default is 27.
147 Specifies that the second and subsequent lines of the description
148 should be indented at least
150 characters. The default is 29.
152 .BI \-\-maxwidth= nnn
153 Specifies that the maximum width for the Info file is
155 This is used when wordwrapping the descriptive text.
159 Prevents the usual display of the new menu entry just before it is
160 inserted, and of the messages announcing the replacement and removal
161 of existing entries and the creation and deletion of sections.
166 to display its usage information and exit.
171 to display its version and copyright information and exit.
173 .BI \-\-description= xxx
174 Specifies that the description to use after the menu entry in new or
177 The default is to use the the value specified in the Info file itself;
178 this is found by searching for a section of the form
180 .B START\-INFO\-DIR\-ENTRY
182 .B * Auto-PGP: (auto-pgp). PGP under GNU Emacs.
184 .B END\-INFO\-DIR\-ENTRY
186 If the entry found in the Info file itself extends across several
187 lines, each giving a menu entry, the text found in the file is used
188 verbatim. In this case the alphabetic ordering scheme is turned off,
189 and the entries are inserted at the top of section in question. In
191 .BR \-\-menuentry ", " \-\-maxwidth ", " \-\-align ", " \-\-calign
192 .RB " and " \-\-menuentry
197 entry in the file the program will try to find a paragraph early in
199 .BR "this file documents" .
200 It will capitalise the first character of the remainder, and use that.
202 It is an error for none of these methods to yield a description.
204 If a description argument is given when
206 is specified it is ignored and a warning is issued.
208 .BI \-\-menuentry= xxx
209 Specifies that the entry in the menu should be
211 The default is to use the the value specified in the Info file itself.
212 If this is not present the basename of the Info file is used
213 .RB "(any " ".info " "is deleted, and the entry is made mixed case)."
214 See above for details of the format expected for the menu entry in the
217 When removing entries the value of the
219 option must match the actual menu entry field in the menu item to be
220 removed (case not significant). If
222 is omitted no check on the menu entry is done.
225 Inhibits the replacement of existing entries and the removal of empty
228 If the file being installed alreay has an entry in the directory the
229 old entry will be left alone instead of being replaced; the default is
230 to overwrite any old entry found with the newly generated one.
233 .BR \-\-remove " is specified " \-\-keep\-old
234 will prevent the removal of the section heading which would otherwise
235 happen if the section is made empty by the removal.
238 Enables test mode, which inhibits the update of the directory file.
241 Enables debugging mode, in which the results of some internal
242 processing steps are shown.
244 emacs(1), info(1), gzip(1)
246 Copyright 1994, Ian Jackson.
248 is free software; see the GNU General Public Licence version 2 or
249 later for copying conditions. There is