Re: Creating symlinks to manpages

2013-02-12 Thread Colin Watson
On Mon, Feb 11, 2013 at 04:29:21PM +0400, Игорь Пашев wrote: 2013/2/11 Kartik Mistry kartik.mis...@gmail.com: On Mon, Feb 11, 2013 at 4:48 PM, Игорь Пашев pashev.i...@gmail.com wrote: Is there any handy way to link manpages? That is I could just write `bar` is described in `foo`. I know

Re: Creating symlinks to manpages

2013-02-12 Thread Colin Watson
On Mon, Feb 11, 2013 at 01:58:10PM +0100, Arno Töll wrote: On 11.02.2013 13:46, Игорь Пашев wrote: I have foo.1 in d/xxx.manpages, and only want to have bar.1 - foo.1, no matter where foo.1 get its location or how it is compressed. You should not use symlinks, but source pages such tasks

Re: Creating symlinks to manpages

2013-02-12 Thread Colin Watson
On Mon, Feb 11, 2013 at 03:18:20PM +0400, Игорь Пашев wrote: The thing I concern it that I need to know exact file name for link target. If I write foo.1m in d/XXX.manpages, it results in foo.1M.gz (with capital M) in a package. There is, as far as I can see, no code in dh_installman that

Re: Creating symlinks to manpages

2013-02-12 Thread Colin Watson
On Mon, Feb 11, 2013 at 05:19:11PM +0400, Sergei Golovan wrote: No, it doesn't. The original problem was that it's hard to create symlink if you don't know the manpage section (dh_installman takes section from the header inside manpages and doesn't use the filename). IMO it's rational to patch

Re: Creating symlinks to manpages

2013-02-12 Thread Игорь Пашев
2013/2/12 Colin Watson cjwat...@debian.org: There is, as far as I can see, no code in dh_installman that forces the section to upper-case. I guess this is due to .TH -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact

Re: Creating symlinks to manpages

2013-02-12 Thread Игорь Пашев
2013/2/12 Colin Watson cjwat...@debian.org: IMO it's rational to patch manual pages to lower-case the section in such cases, and forward that patch upstream so you don't need to continue maintaining it. You'd have to do the same thing if they specified an entirely wrong section number, which

Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
Hi all. Some manpages describe several utilities in one page, so I have to create symlink for manpages, e. g. dcopy.1.gz - clri.1.gz (while clri.1.gz is installed with dh_installman). The thing I concern it that I need to know exact file name for link target. If I write foo.1m in d/XXX.manpages,

Re: Creating symlinks to manpages

2013-02-11 Thread Kartik Mistry
On Mon, Feb 11, 2013 at 4:48 PM, Игорь Пашев pashev.i...@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:

Re: Creating symlinks to manpages

2013-02-11 Thread Jakub Wilk
* Игорь Пашев pashev.i...@gmail.com, 2013-02-11, 15:18: The thing I concern it that I need to know exact file name for link target. Why is that a problem? If I write foo.1m in d/XXX.manpages, it results in foo.1M.gz (with capital M) in a package. If dh_installman seems to install a man

Re: Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
2013/2/11 Kartik Mistry kartik.mis...@gmail.com: On Mon, Feb 11, 2013 at 4:48 PM, Игорь Пашев pashev.i...@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

Re: Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
2013/2/11 Jakub Wilk jw...@debian.org: The thing I concern it that I need to know exact file name for link target. Why is that a problem? Because final file name is out of my control :-) It is controlled by dh_installman and dh_compress I have foo.1 in d/xxx.manpages, and only want to have

Re: Creating symlinks to manpages

2013-02-11 Thread Arno Töll
Hi, On 11.02.2013 13:46, Игорь Пашев wrote: I have foo.1 in d/xxx.manpages, and only want to have bar.1 - foo.1, no matter where foo.1 get its location or how it is compressed. You should not use symlinks, but source pages such tasks [1]. Install a manpage like: bar.1: .so man1/foo.1 [1]

Re: Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
Does it make sense? 1. Extend d/xxx.manpages to form: bar.1 foo.1 2. dh_installman will create symlink bar.1 - foo.1 3. dh_compress will take care of symlinks, e. i.: a) compress foo.1 to foo.1.gz (or whatever) b) rm bar.1 c) create symlink bar.1.gz - foo.1.gz I remember such a thing in

Re: Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
And http://www.debian.org/doc/debian-policy/ch-docs.html -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive:

Re: Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
2013/2/11 Игорь Пашев pashev.i...@gmail.com: a) compress foo.1 to foo.1.gz (or whatever) b) rm bar.1 c) create symlink bar.1.gz - foo.1.gz hm.. dh_compress does it already. -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact

Re: Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
2013/2/11 Arno Töll a...@debian.org: Hi, On 11.02.2013 13:46, Игорь Пашев wrote: I have foo.1 in d/xxx.manpages, and only want to have bar.1 - foo.1, no matter where foo.1 get its location or how it is compressed. You should not use symlinks, but source pages such tasks [1]. Install a

Re: Creating symlinks to manpages

2013-02-11 Thread Arno Töll
Hi, On 11.02.2013 14:00, Игорь Пашев wrote: If you look at dh_installman, you will see that it replaces such dummy pages with symlinks. Which solves your problem, doesn't it? And no, I don't think that's ugly - it's a pragmatic workaround. -- with kind regards, Arno Töll IRC: daemonkeeper

Re: Creating symlinks to manpages

2013-02-11 Thread Sergei Golovan
Hi! On Mon, Feb 11, 2013 at 5:14 PM, Arno Töll a...@debian.org wrote: Hi, On 11.02.2013 14:00, Игорь Пашев wrote: If you look at dh_installman, you will see that it replaces such dummy pages with symlinks. Which solves your problem, doesn't it? And no, I don't think that's ugly - it's a

Re: Creating symlinks to manpages

2013-02-11 Thread Jakub Wilk
* Игорь Пашев pashev.i...@gmail.com, 2013-02-11, 16:46: The thing I concern it that I need to know exact file name for link target. Why is that a problem? Because final file name is out of my control :-) It is controlled by dh_installman and dh_compress Both of them behave in a predictable,