Re: udpkg: add a --os option
On Mon, Aug 10, 2009 at 08:41:36PM -0300, Otavio Salvador wrote:
> Hello Aurelien,
> On Thu, Aug 6, 2009 at 2:34 PM, Aurelien Jarno<email@example.com> wrote:
> > Hi,
> > In the kfreebsd branch of the debian-installer we are using at some
> > places uname to detect if we are running on GNU/Linux on GNU/kFreeBSD,
> > when the script doesn't differ a lot.
> > This is not something really clean, and I think that adding a --os
> > option to udpkg (similar to the --arch option) could help.
> > What do you think?
> Sorry but I fail to see the difference between calling uname and
> udpkg. Can you provide an example how it would help?
DEB_ARCH_OS returns 'linux' on GNU/Linux, and 'kfreebsd' on
GNU/kFreeBSD, which is better than uname. It returns 'Linux' on
GNU/Linux and 'GNU/kFreeBSD' on GNU/kFreeBSD. This means depending on
the script, it has to be passed through: | tr 'A-Z' 'a-z' | tr -d '/'
Aurelien Jarno GPG: 1024D/F1BCDB73