install-info.8 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. .TP
  111. .BI \-\-infodir= infodir
  112. Specifies that the
  113. .B dir
  114. file is, and the installed copy of the new Info file was, is or will
  115. be located in
  116. .IR infodir .
  117. The default is
  118. .BR /usr/info .
  119. .TP
  120. .BI \-\-align= nnn
  121. Specifies that the first line of the description should be indented at
  122. least
  123. .I nnn
  124. characters; extra spaces will be added as required. If necessary
  125. because of the length of the
  126. .B dir
  127. menu entry details it may be offset more. The default is 27.
  128. .TP
  129. .BI \-\-calign= nnn
  130. Specifies that the second and subsequent lines of the description
  131. should be indented at least
  132. .I nnn
  133. characters. The default is 29.
  134. .TP
  135. .BI \-\-maxwidth= nnn
  136. Specifies that the maximum width for the Info file is
  137. .IR nnn .
  138. This is used when wordwrapping the descriptive text.
  139. The default is 79.
  140. .TP
  141. .B \-\-quiet
  142. Prevents the usual display of the new menu entry just before it is
  143. inserted, and of the messages announcing the replacement and removal
  144. of existing entries and the creation and deletion of sections.
  145. .TP
  146. .B \-\-help
  147. Causes
  148. .B install-info
  149. to display its usage information and exit.
  150. .TP
  151. .B \-\-version
  152. Causes
  153. .B install-info
  154. to display its version and copyright information and exit.
  155. .TP
  156. .BI \-\-description= xxx
  157. Specifies that the description to use after the menu entry in new or
  158. updated entries be
  159. .IR xxx .
  160. The default is to use the the value specified in the Info file itself;
  161. this is found by searching for a section of the form
  162. .br
  163. .B START\-INFO\-DIR\-ENTRY
  164. .br
  165. .B * Auto-PGP: (auto-pgp). PGP under GNU Emacs.
  166. .br
  167. .B END\-INFO\-DIR\-ENTRY
  168. If the entry found in the Info file itself extends across several
  169. lines, each giving a menu entry, the text found in the file is used
  170. verbatim. In this case the alphabetic ordering scheme is turned off,
  171. and the entries are inserted at the top of section in question. In
  172. this case the
  173. .BR \-\-menuentry ", " \-\-maxwidth ", " \-\-align ", " \-\-calign
  174. .RB " and " \-\-menuentry
  175. options are ignored.
  176. If there is no
  177. .B dir
  178. entry in the file the program will try to find a paragraph early in
  179. the file starting
  180. .BR "this file documents" .
  181. It will capitalise the first character of the remainder, and use that.
  182. It is an error for none of these methods to yield a description.
  183. If a description argument is given when
  184. .B \-\-remove
  185. is specified it is ignored and a warning is issued.
  186. .TP
  187. .BI \-\-menuentry= xxx
  188. Specifies that the entry in the menu should be
  189. .IR xxx .
  190. The default is to use the the value specified in the Info file itself.
  191. If this is not present the basename of the Info file is used
  192. .RB "(any " ".info " "is deleted, and the entry is made mixed case)."
  193. See above for details of the format expected for the menu entry in the
  194. Info file.
  195. When removing entries the value of the
  196. .B \-\-menuentry
  197. option must match the actual menu entry field in the menu item to be
  198. removed (case not significant). If
  199. .B \-\-menuentry
  200. is omitted no check on the menu entry is done.
  201. .TP
  202. .B \-\-keep\-old
  203. Inhibits the replacement of existing entries and the removal of empty
  204. sections.
  205. If the file being installed alreay has an entry in the directory the
  206. old entry will be left alone instead of being replaced; the default is
  207. to overwrite any old entry found with the newly generated one.
  208. If
  209. .BR \-\-remove " is specified " \-\-keep\-old
  210. will prevent the removal of the section heading which would otherwise
  211. happen if the section is made empty by the removal.
  212. .TP
  213. .B \-\-test
  214. Enables test mode, which inhibits the update of the directory file.
  215. .TP
  216. .B \-\-debug
  217. Enables debugging mode, in which the results of some internal
  218. processing steps are shown.
  219. .SH "SEE ALSO"
  220. emacs(1), info(1), gzip(1)
  221. .SH COPYRIGHT
  222. Copyright 1994, Ian Jackson.
  223. .B install\-info
  224. is free software; see the GNU General Public Licence version 2 or
  225. later for copying conditions. There is
  226. .I no
  227. warranty.