summaryrefslogtreecommitdiffstats
path: root/multiarch-platform
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-24 11:44:35 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-24 11:44:35 +0000
commit5d1702d2f54b3e60e095555eb978e4de8572b2be (patch)
treea81f47a3bf6b77fcd1d1db6fcf2026c1207e7bb7 /multiarch-platform
parentbb99de6b1bba3192ab81db6a65bdb8e8e568c6b7 (diff)
downloadmultiarch-utils-5d1702d2f54b3e60e095555eb978e4de8572b2be.tar
multiarch-utils-5d1702d2f54b3e60e095555eb978e4de8572b2be.tar.gz
multiarch-utils-5d1702d2f54b3e60e095555eb978e4de8572b2be.tar.bz2
multiarch-utils-5d1702d2f54b3e60e095555eb978e4de8572b2be.tar.xz
multiarch-utils-5d1702d2f54b3e60e095555eb978e4de8572b2be.zip
add mips support (from Arnaud Patard)
Diffstat (limited to 'multiarch-platform')
-rwxr-xr-xmultiarch-platform4
1 files changed, 4 insertions, 0 deletions
diff --git a/multiarch-platform b/multiarch-platform
index e9e2da5..00df2fa 100755
--- a/multiarch-platform
+++ b/multiarch-platform
@@ -1,7 +1,11 @@
#!/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