[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Creating symlinks to manpages

On Mon, Feb 11, 2013 at 04:29:21PM +0400, Игорь Пашев wrote:
> 2013/2/11 Kartik Mistry <kartik.mistry@gmail.com>:
> > On Mon, Feb 11, 2013 at 4:48 PM, Игорь Пашев <pashev.igor@gmail.com> wrote:
> >> Is there any handy way to "link" manpages? That is I could just write
> >> "`bar` is described in `foo`". I know about .so, but looks urgly because
> >> debhelper finally replaces it with symlink :-)
> >
> > dh_link will do.
> >
> > For example: dh_link usr/share/man/man1/ayttm.1.gz
> > usr/share/man/man1/ayttm_streamer_wrapper.1.gz
> Yeah, that's what I do, but my problem is that I have to know final file name,
> e. i. take care of section and compression.

You don't need to take care of compression.  dh_compress is
conventionally run after dh_link, and it knows how to fix up symlinks;
so, in the above example, this is enough:

  dh_link usr/share/man/man1/ayttm.1 usr/share/man/man1/ayttm_streamer_wrapper.1

Colin Watson                                       [cjwatson@debian.org]

Reply to: