Re: Creating symlinks to manpages

2013-02-12 Thread Игорь Пашев
2013/2/12 Colin Watson : > 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 does happen some

Re: Creating symlinks to manpages

2013-02-12 Thread Игорь Пашев
2013/2/12 Colin Watson : > 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 listmas...@lists.debian.org

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 pat

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 fo

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 s

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 : > > On Mon, Feb 11, 2013 at 4:48 PM, Игорь Пашев 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

Re: Creating symlinks to manpages

2013-02-11 Thread Jakub Wilk
* Игорь Пашев , 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, documented way. -- Ja

Re: Creating symlinks to manpages

2013-02-11 Thread Sergei Golovan
Hi! On Mon, Feb 11, 2013 at 5:14 PM, Arno Töll 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 pragmat

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 Игорь Пашев
2013/2/11 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 manp

Re: Creating symlinks to manpages

2013-02-11 Thread Игорь Пашев
2013/2/11 Игорь Пашев : > > 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 listmas...@lists.

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: http://lists.debian.org/CALL-Q8x707OpshOhd6LzAf3ow_NT5dxz-UmK0YN_CiwR=j1...@mail.gmai

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 Sla

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 Игорь Пашев
2013/2/11 Jakub Wilk : >> 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 bar.1 ->

Re: Creating symlinks to manpages

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

Re: Creating symlinks to manpages

2013-02-11 Thread Jakub Wilk
* Игорь Пашев , 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 page into the wrong sect

Re: Creating symlinks to manpages

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