1 2 3 4 5 6 7 8 9 10
#!/bin/sh arch=`uname -m` case $arch in i?86) arch=i386;; esac os=`uname -s` case $os in Linux*) os=linux;; esac echo multiarch-$arch-$os