blob: 00df2faeb191ce10e1777db7f5d8a8d72f539098 (
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="$arch"eb ;;
esac
os=`uname -s`
case $os in
Linux*) os=linux;;
esac
echo multiarch-$arch-$os
|