install-info.8 7.7 KB

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