contribs: microdns: Fix scan failure when connectivity gets restored
[vlc.git] / contrib / src / get-arch.sh
blob3431779811fd7302c4787b195783f0bb8b862b24
1 #! /bin/sh
3 HOST="$1"
4 if test -z "$HOST"; then
5 echo "Usage: $0 <target machine>" >&2
6 exit 1
7 fi
9 case "$HOST" in
10 amd64-*)
11 ARCH="x86_64"
13 armv*-*)
14 ARCH="arm"
16 i[3456]86-*|x86-*)
17 ARCH="i386"
19 powerpc-*|ppc-*)
20 ARCH="ppc"
22 powerpc64-*|ppc64-*)
23 ARCH="ppc64"
25 *-*)
26 ARCH="${HOST%%-*}"
29 echo "$HOST: invalid machine specification" >&2
30 exit 1
31 esac
32 echo $ARCH