[Build-common-hackers] cdbs and man pages

Jeff Bailey jbailey@nisa.net
Fri, 16 Jan 2004 09:50:20 -0500

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2004-01-15 at 23:04, Russell Coker wrote:
> With cdbs based packages how do I get a man page to have several aliases =
> "man foo" and "man bar" both give the foo(3) man page)?

manpage installation is handled with dh_installman (assuming you're
using debhelper.  So far, everyone has been).  The trick is to use the
.so hack in dh_installman to get it to generate the symlink for you.

Let's say I have two programs, ls, and ll.  ll is just a mode on ls.  So
I create two files like so:

-rw-r--r--    1 jbailey  jbailey        18 2004-01-16 09:40 ll.1
-rw-r--r--    1 jbailey  jbailey      6450 2004-01-16 09:32 ls.1

$ cat ll.1
ll.1.so man1/ls.1

Will create this:

lrwxrwxrwx    1 jbailey  jbailey         7 2004-01-16 09:45 ll.1.gz ->
-rw-r--r--    1 jbailey  jbailey      2656 2004-01-16 09:32 ls.1.gz


Jeff Bailey

I never know what to expect when you respond to my postings. No insult
intended, you are merely a surprise :)
 - Carlos O'Donnell

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.2.4 (GNU/Linux)