install-info.8 8.5 KB

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