From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Finding the object suffix
Date: Thu, 25 Mar 2004 06:57:21 -0500 [thread overview]
Message-ID: <5e98ce2e01a213c1498c3df04e10c326@plan9.bell-labs.com> (raw)
In-Reply-To: <2004032510535500-74837@Symmetry.UUCP>
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
first of all, $objtype is the target to compile for, not the type
of the local cpu. You at least need to look at $cputype.
The following would do it with one less process:
sed -n 's/^O=(.*)/\1/p' /$cputype/mkfile
[-- Attachment #2: Type: message/rfc822, Size: 2534 bytes --]
From: Nils M Holm <nmh@t3x.org>
To: 9fans@cse.psu.edu
Subject: [9fans] Finding the object suffix
Date: Thu, 25 Mar 2004 11:53:55 +0100
Message-ID: <2004032510535500-74837@Symmetry.UUCP>
I am currently writing an rc script that needs to know the
object suffix of the architecture it is running on. Would
the following code reliably return this suffix, or is there
a better way?
grep '^O=.$' /$objtype/mkfile | sed -e 's/O=//'
Thanks,
Nils.
--
Nils M Holm <nmh@t3x.org> -- http://www.t3x.org/nmh/
next prev parent reply other threads:[~2004-03-25 11:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 10:53 Nils M Holm
2004-03-25 11:57 ` David Presotto [this message]
2004-03-26 7:14 ` Nils M Holm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5e98ce2e01a213c1498c3df04e10c326@plan9.bell-labs.com \
--to=presotto@closedmind.org \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).