2016-03-03 10:31:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
uname=$(/usr/bin/uname $@)
|
2021-01-25 01:56:55 +00:00
|
|
|
rv=$?
|
2020-03-23 10:34:39 +00: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}
|
2020-02-10 06:59:34 +00:00
|
|
|
echo "$uname" |
|
|
|
|
sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/" |
|
2020-03-23 10:34:39 +00:00
|
|
|
sed "s/$uname_m/$arch/"
|
2020-02-10 06:59:34 +00:00
|
|
|
|
2016-03-03 11:05:28 +00:00
|
|
|
exit $rv
|