testing/dotnet31: update

This commit is contained in:
build@apk-groulx 2021-12-13 06:07:52 +00:00
parent 015c0dd5aa
commit b81c2a210b

View file

@ -69,7 +69,7 @@ builddir="$srcdir/$_srcbld"
default_prepare() { default_prepare() {
local i failed= local i failed=
[ -n "$builddir" -a -d "$builddir" ] && cd "$builddir" if [ -n "$builddir"] && [ -d "$builddir" ]; then cd "$builddir"; fi
if ! have_patches; then if ! have_patches; then
return 0 return 0
fi fi
@ -82,7 +82,7 @@ default_prepare() {
;; ;;
*.patch) *.patch)
local _package=$(echo $i | sed 's|_.*||') local _package=$(echo $i | sed 's|_.*||')
local _patch=$(echo $i | sed "s|"$_package"_||") local _patch=$(echo $i | sed "s|$_package_||")
echo "cp $_patch -> $_package" echo "cp $_patch -> $_package"
[ -d patches/$_package ] || mkdir patches/$_package [ -d patches/$_package ] || mkdir patches/$_package
cp "$srcdir"/"$i" patches/$_package/$_patch cp "$srcdir"/"$i" patches/$_package/$_patch
@ -104,7 +104,7 @@ prepare() {
default_prepare default_prepare
msg "Settings up bootstrap SDK" msg "Settings up bootstrap SDK"
cp -r /usr/share/dotnet/* ./ cp -r /usr/share/dotnet/* ./
if [[ $(find sdk -type d -not -name '3.1.*' -maxdepth 1 -mindepth 1) ]]; then if [ $(find sdk -type d -not -name '3.1.*' -maxdepth 1 -mindepth 1) ]; then
find sdk -type d -not -name '3.1.*' -maxdepth 1 -mindepth 1 -print0 | xargs -0 rm -R -- find sdk -type d -not -name '3.1.*' -maxdepth 1 -mindepth 1 -print0 | xargs -0 rm -R --
fi fi