2016-03-03 11:31:57 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
uname=$(/usr/bin/uname $@)
|
2020-03-23 11:34:39 +01:00
|
|
|
uname_m=$(/usr/bin/uname -m)
|
|
|
|
arch=${XBPS_ARCH%-musl}
|
|
|
|
# if XBPS_ARCH was reseted by `env -i` use original `/usr/bin/uname -m`
|
|
|
|
: ${arch:=$uname_m}
|
2016-03-03 11:31:57 +01:00
|
|
|
rv=$?
|
2020-02-10 07:59:34 +01:00
|
|
|
echo "$uname" |
|
|
|
|
sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/" |
|
2020-03-23 11:34:39 +01:00
|
|
|
sed "s/$uname_m/$arch/"
|
2020-02-10 07:59:34 +01:00
|
|
|
|
2016-03-03 12:05:28 +01:00
|
|
|
exit $rv
|