uv: update to 0.4.30.
[void-pkg.git] / common / wrappers / uname.sh
blob4edca2548a64f3da7811ee495a2a5b5297c27491
1 #!/bin/sh
3 uname=$(/usr/bin/uname $@)
4 rv=$?
5 uname_m=$(/usr/bin/uname -m)
6 arch=${XBPS_ARCH%-musl}
7 # if XBPS_ARCH was reseted by `env -i` use original `/usr/bin/uname -m`
8 : ${arch:=$uname_m}
9 echo "$uname" |
10 sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/" |
11 sed "s/$uname_m/$arch/"
13 exit $rv