Diff

Differences From Artifact [b06e7fd1c1]:

To Artifact [482a7c7be3]:


     1      1   #! /usr/bin/env bash
     2      2   
     3      3   if [ "$1" == "--fake" ]; then
     4      4   	echo "true"
     5      5   
     6      6   	exit 0
     7      7   fi
            8  +
            9  +# Some systems do not compile well with this fake uname in place
           10  +# provide the real uname for them.
           11  +case "${CROSS}" in
           12  +	mipsel-unknown-linux-uclibc)
           13  +		unset CROSS
           14  +		;;
           15  +esac
     8     16   
     9     17   if [ -z "${CROSS}" ]; then
    10     18   	# If not cross compiling, revert to system uname
    11     19   	while [ "$(uname --fake 2>/dev/null)" == "true" -a -n "${PATH}" ]; do
    12     20   		PATH="$(echo "${PATH}" | /usr/bin/sed 's@^[^:]*$@@;s@^[^:]*:@@')"
    13     21   
    14     22   		export PATH
................................................................................
    63     71   		;;
    64     72   	i?86-*)
    65     73   		sysmachine="i686"
    66     74   		;;
    67     75   	ia64-*)
    68     76   		sysmachine="ia64"
    69     77   		;;
    70         -	arm-*)
           78  +	arm-*|armel-*|armeb-*)
    71     79   		sysmachine="armv7l"
           80  +		;;
           81  +	mipsel-*|mipseb-*)
           82  +		sysmachine="mips"
    72     83   		;;
    73     84   esac
    74     85   
    75     86   for arg in $(echo "$@" | sed 's@.@ & @g'); do
    76     87   	case "${arg}" in
    77     88   		-)
    78     89   			continue