Diff

Differences From Artifact [b06e7fd1c1]:

To Artifact [482a7c7be3]:


1
2
3
4
5
6
7








8
9
10
11
12
13
14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22







+
+
+
+
+
+
+
+







#! /usr/bin/env bash

if [ "$1" == "--fake" ]; then
	echo "true"

	exit 0
fi

# Some systems do not compile well with this fake uname in place
# provide the real uname for them.
case "${CROSS}" in
	mipsel-unknown-linux-uclibc)
		unset CROSS
		;;
esac

if [ -z "${CROSS}" ]; then
	# If not cross compiling, revert to system uname
	while [ "$(uname --fake 2>/dev/null)" == "true" -a -n "${PATH}" ]; do
		PATH="$(echo "${PATH}" | /usr/bin/sed 's@^[^:]*$@@;s@^[^:]*:@@')"

		export PATH
63
64
65
66
67
68
69
70

71



72
73
74
75
76
77
78
71
72
73
74
75
76
77

78
79
80
81
82
83
84
85
86
87
88
89







-
+

+
+
+







		;;
	i?86-*)
		sysmachine="i686"
		;;
	ia64-*)
		sysmachine="ia64"
		;;
	arm-*)
	arm-*|armel-*|armeb-*)
		sysmachine="armv7l"
		;;
	mipsel-*|mipseb-*)
		sysmachine="mips"
		;;
esac

for arg in $(echo "$@" | sed 's@.@ & @g'); do
	case "${arg}" in
		-)
			continue