summaryrefslogtreecommitdiffstats
path: root/multiarch-platform
blob: f46916f743596ff019a7e42415a7e1d0b15ebbae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
arch=`uname -m`
`perl -e '$le   = unpack("h*", pack("s", 1)) =~ /^1/; exit $le;'`
le=$?
case $arch in
i?86) arch=i386;;
mips*) [ $le -eq 1 ] && arch="$arch"el ;;
arm*) [ $le -eq 0 ] && arch="armeb" || arch="arm" ;;
esac
os=`uname -s`
case $os in
Linux*) os=linux;;
esac
echo multiarch-$arch-$os