Gentoo Archives: gentoo-dev

From: "Chad M. Huneycutt" <chad.huneycutt@×××.org>
To: gentoo-dev@××××××××××.org
Subject: [gentoo-dev] Info Pages
Date: Thu, 26 Jul 2001 22:08:48
Message-Id: 3B60E879.3000909@acm.org
1 In trying to get the info pages to work, I learned a few things and
2 thought I would pass them on. I just threw down the thoughts, so there
3 are probably typos, etc. and the formatting is terrible. If there is
4 interest, I will xml-ify it. Just let me know.
5
6 Chad Huneycutt
7 aka Bab5
8
9 ---
10 Here is a quick tutorial on making info pages work:
11
12 In order for the info page of foo to display after typing 'info foo',
13 the following two conditions must be met
14 1. the info file (.info or .info.gz) must be in the info path
15 (/usr/share/info in gentoo)
16 2. *** there must be an entry in the dir file for that particular info
17 directory (/usr/share/info/dir in gentoo)
18
19 #2 is the important one it seems. Most programs that have info pages
20 get the page put in the right place, but some fail to get the entry
21 registered in the dir file.
22
23 There are 3 options for fixing this:
24 1. edit the source .texi file - This is the best solution, as this is
25 what foo's developer will need to do in order to fix it
26 correctly.Replace the fields in square brackets appropriately. I think
27 that the punctuation is very important (periods, colons, etc.)
28
29 Here is how to do this (NOTE: this is different than my previous
30 e-mail)
31 Somewhere near the top of the file (like right after the @ifinfo), add
32 the following lines:
33 @dircategory [category]
34 @direntry
35 * [name]: ([name]). [Short Description].
36 @end direntry
37
38 Replace the fields in square brackets appropriately. I think that the
39 punctuation is very important (periods, colons, etc.)
40
41 The only problem with this solution is if foo's developer does not
42 provide the .texi file or if the .texi file is ignored (check the
43 Makefile install target). If the .texi file is not provided, goto
44 option 2. If the .texi file is ignored, then you can either patch it
45 and run a makeinfo yourself or goto step 2).
46
47 2. edit the info file - This is a stop-gap solution, but will work if
48 option 1 will not.
49
50 What happens to the lines above [that would have been inserted into the
51 .texi file] is that they are transformed to the following, so place it
52 somewhere near the top of the file
53
54 START-INFO-DIR-ENTRY
55 * [name]: ([name]). [Short Description].
56 END-INFO-DIR-ENTRY
57
58 Replace the fields in square brackets appropriately. I think that the
59 punctuation is very important (periods, colons, etc.)
60
61 3. The last option is the trickiest - edit the dir file and add the
62 appropriate entry. This is only recommended as a last resort, but here
63 is how it works. In gentoo the dir file is /usr/share/info/dir. You
64 will see a bunch of lines that begin with an * of the same format as the
65 above two examples. Just find the right section and add the entry just
66 as I have above, paying close attention to punctuation. This is not an
67 operation for the faint of heart to attempt inside of an ebuild!

Replies

Subject Author
Re: [gentoo-dev] Info Pages Chad Huneycutt <chad.huneycutt@×××.org>