/[soft]/multiarch-utils/trunk/multiarch-platform
ViewVC logotype

Contents of /multiarch-utils/trunk/multiarch-platform

Parent Directory Parent Directory | Revision Log Revision Log


Revision 399 - (show annotations) (download)
Thu Feb 3 18:09:01 2011 UTC (13 years, 2 months ago) by dmorgan
File size: 305 byte(s)
Import cleaned multiarch-utils*
1 #!/bin/sh
2 arch=`uname -m`
3 `perl -e '$le = unpack("h*", pack("s", 1)) =~ /^1/; exit $le;'`
4 le=$?
5 case $arch in
6 i?86) arch=i386;;
7 mips*) [ $le -eq 1 ] && arch="$arch"el ;;
8 arm*) [ $le -eq 0 ] && arch="armeb" || arch="arm" ;;
9 esac
10 os=`uname -s`
11 case $os in
12 Linux*) os=linux;;
13 esac
14 echo multiarch-$arch-$os

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30