[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: Re: CVS: cvs.openbsd.org: src
- From: Han Boetes <han_(_at_)_mijncomputer_(_dot_)_nl>
- Date: Tue, 25 Jan 2005 12:17:32 +0100
- Mail-followup-to: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
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