repo.or.cz
/
vlc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
contribs: microdns: Fix scan failure when connectivity gets restored
[vlc.git]
/
contrib
/
src
/
get-arch.sh
blob
3431779811fd7302c4787b195783f0bb8b862b24
1
#! /bin/sh
2
3
HOST
=
"
$1
"
4
if
test -z
"
$HOST
"
;
then
5
echo
"Usage:
$0
<target machine>"
>&
2
6
exit
1
7
fi
8
9
case
"
$HOST
"
in
10
amd64-
*)
11
ARCH
=
"x86_64"
12
;;
13
armv
*-*)
14
ARCH
=
"arm"
15
;;
16
i
[
3456
]
86
-*
|x86-
*)
17
ARCH
=
"i386"
18
;;
19
powerpc-
*
|ppc-
*)
20
ARCH
=
"ppc"
21
;;
22
powerpc64-
*
|ppc64-
*)
23
ARCH
=
"ppc64"
24
;;
25
*-*)
26
ARCH
=
"
${HOST%%-*}
"
27
;;
28
*)
29
echo
"
$HOST
: invalid machine specification"
>&
2
30
exit
1
31
esac
32
echo
$ARCH