chiark
/
gitweb
/
~mdw
/
sw-tools
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d451ca
)
sw.in: Cope properly if `uname -p' doesn't work.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 18 Feb 2006 19:15:41 +0000
(19:15 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 18 Feb 2006 19:15:41 +0000
(19:15 +0000)
sw.in
patch
|
blob
|
blame
|
history
diff --git
a/sw.in
b/sw.in
index 36a2e37d8091da3651d55e4702e8615cfbf7c9c6..c56b7cd28695e351027681e0ab5c1b25667456d8 100755
(executable)
--- a/
sw.in
+++ b/
sw.in
@@
-38,7
+38,7
@@
# --- Step one: find out about the CPU architecture ---
-CPU=`uname -p`; CPU=`echo $CPU | tr A-Z a-z`
+CPU=`uname -p
2>/dev/null || echo unknown
`; CPU=`echo $CPU | tr A-Z a-z`
case $CPU in
unknown) CPU=`uname -m` ;;
esac