install-info.8 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. .\" Install-info and this manpage are Copyright 1994 by Ian Jackson.
  2. .\"
  3. .\" This is free software; see the GNU General Public Licence version 2
  4. .\" or later for copying conditions. There is NO warranty.
  5. .TH install\-info 8 "2006-02-28" "Debian Project" "dpkg utilities"
  6. .SH NAME
  7. install\-info - create or update entry in Info directory
  8. .
  9. .SH SYNOPSIS
  10. .B install\-info
  11. .RB [ \-\-version ]
  12. .RB [ \-\-help ]
  13. .RB [ \-\-debug ]
  14. .RB [ \-\-maxwidth=\fInnn\fP ]
  15. .RB [ "\-\-section \fIregexp\fP \fItitle\fP" ]
  16. .RB [ \-\-infodir=\fIxxx\fP ]
  17. .RB [ \-\-align=\fInnn\fP ]
  18. .RB [ \-\-quiet ]
  19. .RB [ \-\-menuentry=\fIxxx\fP ]
  20. .RB [ \-\-description=\fIxxx\fP ]
  21. .RB [ \-\-remove | \-\-remove\-exactly ]
  22. .RB [ \-\- ]
  23. .I filename
  24. .
  25. .SH DESCRIPTION
  26. .B install\-info
  27. makes, updates or removes entries in the Info directory, the
  28. .B dir
  29. file. When updating or creating entries, if no description is
  30. specified on the command line or in the Info file it attempts to guess
  31. a description from the contents of the file.
  32. .PP
  33. See the description of the
  34. .B \-\-section
  35. option for details of where the entry will be placed and a description
  36. of the expected format of the
  37. .B dir
  38. file.
  39. .SH OPTIONS
  40. .TP
  41. .BI "[\-\-] " filename
  42. Gives the filename of the Info file whose menu entry is to be created,
  43. updated or removed. If
  44. .B \-\-remove\-exactly
  45. is specified, then
  46. .I filename
  47. should be the exact entry name to be removed (i.e. "emacs\-20/emacs" or
  48. "gcc"), otherwise the basename of this filename is used as the
  49. referent of the menu entry which is created, unless there's an
  50. overriding START-INFO-DIR entry inside the given file. This file must
  51. therefore exist (or be about to be installed, or have previously
  52. existed when removing an entry) in the same directory as the
  53. .B dir
  54. file (see the
  55. .B \-\-infodir
  56. option).
  57. If
  58. .I filename
  59. ends in
  60. .B .gz
  61. it is taken to refer to a file compressed with GNU gzip; if it doesn't
  62. exist, but a corresponding
  63. .IB filename .gz
  64. does, the latter is used instead.
  65. When adding or updating entries the file must exist at the path
  66. specified (possibly with an additional
  67. .B .gz
  68. extension).
  69. .TP
  70. .B \-\-remove
  71. Specifies that the entry for the file
  72. .I filename
  73. is to be removed; by default entries are created or updated.
  74. If the removal results in a section becoming empty the section heading
  75. (and the spare blank line) will be removed as well, unless this is the
  76. last section in the file or
  77. .B \-\-keep\-old
  78. is specified. See the
  79. .B \-\-section
  80. option for details about the expected format of the
  81. .B dir
  82. file.
  83. If there are several suitable entries in the
  84. .B dir
  85. file only those in the first matching contiguous group will be removed
  86. and the others silently ignored.
  87. It is not an error for no suitable entry to be found, though
  88. .B install\-info
  89. will issue a warning unless the
  90. .B \-\-quiet
  91. option was specified.
  92. When
  93. .B \-\-remove
  94. is specified the
  95. .BR \-\-maxwidth ", " \-\-align " and " \-\-calign
  96. formatting options are silently ignored.
  97. .TP
  98. .B \-\-remove\-exactly
  99. This option is essentially the same as
  100. .B \-\-remove
  101. except that
  102. .I filename
  103. is taken as the exact entry to be removed, rather than as the name
  104. of an existing file. This can be important when trying to remove
  105. entries that refer to info files in subdirectories
  106. (i.e. "emacs\-20/emacs") because
  107. .B \-\-remove
  108. will operate on the basename of the given
  109. .I filename
  110. rather than the exact name given. (i.e.
  111. .B \-\-remove
  112. "emacs\-20/emacs" would cause
  113. .B install\-info
  114. to look for "emacs", not "emacs\-20/emacs").
  115. .TP
  116. .BI "\-\-section " "regexp title"
  117. Specifies that, if a new entry is to be made, it should be placed in a
  118. section of the
  119. .B dir
  120. file whose title matches
  121. .IR regexp .
  122. If no such section exists one will be created as the second last
  123. section in the file (see below), with title
  124. .IR title .
  125. A section is a part of the
  126. .B dir
  127. menu delimited by blank lines; the first line is assumed to be the
  128. title.
  129. If a new entry is to be created
  130. .B install\-info
  131. will attempt to insert it within the section according in alphabetic
  132. order; if the entries in the section aren't already sorted the new
  133. location within the section will be unpredictable. The order of
  134. existing entries will not be changed.
  135. The default is to append new entries to the end of the file. The last
  136. section (even if it only consists of the title line) should always
  137. exist, to ensure that new sections are created in the right place.
  138. The final section should be titled to reflect the fact that Info files
  139. with no more well specified location are appended to it.
  140. If there is already an entry for the Info file being installed it is
  141. replaced in situ with the new entry.
  142. If a section is specified when removing an entry the section is
  143. ignored and a warning is issued.
  144. If a section is requested when adding an entry but the file contains
  145. no section headings at all then
  146. .B install\-info
  147. will create both the requested section and a Miscellaneous section at
  148. the end of the file.
  149. .TP
  150. .BI \-\-infodir= infodir
  151. Specifies that the
  152. .B dir
  153. file is, and the installed copy of the new Info file was, is or will
  154. be located in
  155. .IR infodir .
  156. The default is
  157. .BR /usr/share/info/ .
  158. .TP
  159. .BI \-\-align= nnn " [deprecated]"
  160. Specifies that the first line of the description should be indented at
  161. least
  162. .I nnn
  163. characters; extra spaces will be added as required. If necessary
  164. because of the length of the
  165. .B dir
  166. menu entry details it may be offset more. The default is 27.
  167. .TP
  168. .BI \-\-calign= nnn " [deprecated]"
  169. Specifies that the second and subsequent lines of the description
  170. should be indented at least
  171. .I nnn
  172. characters. The default is 29.
  173. .TP
  174. .BI \-\-maxwidth= nnn " [deprecated]"
  175. Specifies that the maximum width for the Info file is
  176. .IR nnn .
  177. This is used when word-wrapping the descriptive text.
  178. The default is 79.
  179. .TP
  180. .B \-\-quiet
  181. Prevents the usual display of the new menu entry just before it is
  182. inserted, and of the messages announcing the replacement and removal
  183. of existing entries and the creation and deletion of sections.
  184. .TP
  185. .B \-\-help
  186. Causes
  187. .B install\-info
  188. to display its usage information and exit.
  189. .TP
  190. .B \-\-version
  191. Causes
  192. .B install\-info
  193. to display its version and copyright information and exit.
  194. .TP
  195. .BI \-\-description= xxx
  196. Specifies that the description to use after the menu entry in new or
  197. updated entries be
  198. .IR xxx .
  199. The default is to use the the value specified in the Info file itself;
  200. this is found by searching for a section of the form
  201. .br
  202. .B START\-INFO\-DIR\-ENTRY
  203. .br
  204. .B * Auto-PGP: (auto-pgp). PGP under GNU Emacs.
  205. .br
  206. .B END\-INFO\-DIR\-ENTRY
  207. If the entry found in the Info file itself extends across several
  208. lines, each giving a menu entry, the text found in the file is used
  209. verbatim. In this case the alphabetic ordering scheme is turned off,
  210. and the entries are inserted at the top of section in question. In
  211. this case the
  212. .BR \-\-menuentry ", " \-\-maxwidth ", " \-\-align ", " \-\-calign
  213. .RB " and " \-\-menuentry
  214. options are ignored.
  215. If there is no
  216. .B dir
  217. entry in the file the program will try to find a paragraph early in
  218. the file starting
  219. .BR "this file documents" .
  220. It will capitalise the first character of the remainder, and use that.
  221. It is an error for none of these methods to yield a description.
  222. If a description argument is given when
  223. .B \-\-remove
  224. is specified it is ignored and a warning is issued.
  225. .TP
  226. .BI \-\-menuentry= xxx
  227. Specifies that the entry in the menu should be
  228. .IR xxx .
  229. The default is to use the the value specified in the Info file itself.
  230. If this is not present the basename of the Info file is used
  231. .RB "(any " ".info " "is deleted, and the entry is made mixed case)."
  232. See above for details of the format expected for the menu entry in the
  233. Info file.
  234. When removing entries the value of the
  235. .B \-\-menuentry
  236. option must match the actual menu entry field in the menu item to be
  237. removed (case not significant). If
  238. .B \-\-menuentry
  239. is omitted no check on the menu entry is done.
  240. .TP
  241. .B \-\-keep\-old
  242. Inhibits the replacement of existing entries and the removal of empty
  243. sections.
  244. If the file being installed already has an entry in the directory the
  245. old entry will be left alone instead of being replaced; the default is
  246. to overwrite any old entry found with the newly generated one.
  247. If
  248. .BR \-\-remove " is specified " \-\-keep\-old
  249. will prevent the removal of the section heading which would otherwise
  250. happen if the section is made empty by the removal.
  251. .TP
  252. .B \-\-test
  253. Enables test mode, which inhibits the update of the directory file.
  254. .TP
  255. .B \-\-debug
  256. Enables debugging mode, in which the results of some internal
  257. processing steps are shown.
  258. .
  259. .SH "SEE ALSO"
  260. .BR emacs (1),
  261. .BR info (1),
  262. .BR gzip(1).
  263. .SH COPYRIGHT
  264. Copyright 1994, Ian Jackson.
  265. .B install\-info
  266. is free software; see the GNU General Public Licence version 2 or
  267. later for copying conditions. There is
  268. .I no
  269. warranty.