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

Re: CVS: cvs.openbsd.org: src



Otto Moerbeek wrote:
> On Tue, 25 Jan 2005, Han Boetes wrote:
> > Looking at the diff I see:
> >
> > + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
> > + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
> >
> >
> > But why not use arch -s ?
> >
> > + echo `arch -s`-unknown-openbsd${UNAME_RELEASE}
>
> This was discussed. Older versions of OpenBSD do not support arch -s.

Ah OK. Then I suggest using the shell instead of sed:

+ UNAME_OS_MACHINE_ARCH=`arch`
+ echo ${UNAME_OS_MACHINE_ARCH#OpenBSD.}-unknown-openbsd${UNAME_RELEASE}

Quite trivial though.



# Han



Visit your host, monkey.org