testing/dotnet31: update
This commit is contained in:
parent
015c0dd5aa
commit
b81c2a210b
1 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ builddir="$srcdir/$_srcbld"
|
|||
|
||||
default_prepare() {
|
||||
local i failed=
|
||||
[ -n "$builddir" -a -d "$builddir" ] && cd "$builddir"
|
||||
if [ -n "$builddir"] && [ -d "$builddir" ]; then cd "$builddir"; fi
|
||||
if ! have_patches; then
|
||||
return 0
|
||||
fi
|
||||
|
@ -82,7 +82,7 @@ default_prepare() {
|
|||
;;
|
||||
*.patch)
|
||||
local _package=$(echo $i | sed 's|_.*||')
|
||||
local _patch=$(echo $i | sed "s|"$_package"_||")
|
||||
local _patch=$(echo $i | sed "s|$_package_||")
|
||||
echo "cp $_patch -> $_package"
|
||||
[ -d patches/$_package ] || mkdir patches/$_package
|
||||
cp "$srcdir"/"$i" patches/$_package/$_patch
|
||||
|
@ -104,7 +104,7 @@ prepare() {
|
|||
default_prepare
|
||||
msg "Settings up bootstrap SDK"
|
||||
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 --
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue