install-info.8 8.4 KB

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