[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using GNU's install-info in Debian instead of dpkg's install-info
From: |
Nicolas François |
Subject: |
Re: Using GNU's install-info in Debian instead of dpkg's install-info |
Date: |
Sun, 21 May 2006 22:47:38 +0200 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
Hi,
On Sun, May 21, 2006 at 07:50:22PM +0200, Norbert Preining wrote:
> Hi Karl!
>
> On Son, 21 Mai 2006, Nicolas François wrote:
>
> > What I think has to be done for --section is:
> > * detect if there are 2 arguments to the --section option
> > * detect if this second argument is a file
> > ("install-info --section section info-file dir-file" is a GNU
> > install-info
> > command line, it should not be taken as a dpkg command line:
> > "install-info --section regex section info-file")
> > Of course if a file exists with the same name as the section, this
> > algorithm doesn't work. But it doesn't seems to happen according to my dir
> > file.
>
> Karl, what do you think. Would this be acceptable to be merged into
> install-info?
Maybe the change in Debian will have to be temporary (i.e. provide support
for the current behavior of dpkg's i-i for a few (Debian) releases)
Supporting multiple arguments for an option in getopt is not really clean
and having an option which accepts either one or two arguments is maybe
not very clean either (I mean for upstream) (moreover, i-i accepts a
variable number of parameters at the ends).
Maybe we can make a wrapper in Debian (something like the attached script)
that will pass the first argument of the --section option to a new
--section-regex option. i.e. change
install-info --section regex section info-file
to
ginstall-info --section-regex regex --section section info-file
Maybe Karl will be interested by the --section-regex option.
(It permits to install the info file in a section that match this regex
and is not necessarily exactly the same as specified with --section; the
section specified with --section is still used if no sections match the
regex)
Kind Regards,
--
Nekral
install-info.sh
Description: Bourne shell script
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Ian Zimmerman, 2006/05/25
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Karl Berry, 2006/05/25
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Ian Zimmerman, 2006/05/25
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Karl Berry, 2006/05/26
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Ian Zimmerman, 2006/05/26
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Karl Berry, 2006/05/26
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Ian Zimmerman, 2006/05/26
- Re: Using GNU's install-info in Debian instead of dpkg's install-info, Eli Zaretskii, 2006/05/27