repo.or.cz
/
retty.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial rework of tree to support different architectures/OSes.
[retty.git]
/
getarch.sh
blob
36fafad640e3509f6f517f379ce610dd35ec34d3
1
#!/bin/sh
2
3
ARCH
=
`uname -m`
4
if
echo
$ARCH
|
grep
'^i.86$'
>/
dev
/
null
2
>/
dev
/
null
;
then
5
ARCH
=
ia32
6
fi
7
8
OS
=
`uname|tr [A-Z] [a-z]`
9
10
if
[
"x
$1
"
=
"x-os"
];
then
11
echo
$OS
12
elif
[
"x
$1
"
=
"x-arch"
];
then
13
echo
$ARCH
14
fi