[Build-common-hackers] cdbs and man pages

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


--=-QydTjP92G9vWYpbcpVKq
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 =
(IE=20
> "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 ->
ls.1.gz
-rw-r--r--    1 jbailey  jbailey      2656 2004-01-16 09:32 ls.1.gz

HTH.

Tks,
Jeff Bailey

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAB/or5M5hmdCYCpkRAhKqAJ9z9H3PeauIUn6DZcKUN9VI5HF6WQCfesaL
y7fh3gDLm+foSZQXsojnJXo=
=w8rJ
-----END PGP SIGNATURE-----

--=-QydTjP92G9vWYpbcpVKq--