forked from filipnavara/dotnet-riscv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch_alpine.sh
More file actions
executable file
·29 lines (25 loc) · 851 Bytes
/
patch_alpine.sh
File metadata and controls
executable file
·29 lines (25 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
export TOP_DIR="$(cd "$(dirname "$(which "$0")")" ; pwd -P)"
pushd dotnet > /dev/null 2> /dev/null
br_path="eng/common/cross/build-rootfs.sh"
patch -p1 < "${TOP_DIR}/patches/bflat-runtime/12_alpine_custom.patch"
if [ "$?" != "0" ] ; then
echo "Failed to apply alpine patch (1)" >&2
exit 1
fi
for folder in $(ls src) ; do
if [ ! -d src/$folder ] || [ "$folder" == "command-line-api" ] || [ "$folder" == "razor" ] ; then
continue
fi
pushd src/$folder > /dev/null 2> /dev/null
if [ -f $br_path ] ; then
echo Project: $folder
patch -p1 < "${TOP_DIR}/patches/bflat-runtime/12_alpine_custom.patch"
if [ "$?" != "0" ] ; then
echo "Failed to apply alpine patch (2)" >&2
exit 2
fi
fi
popd > /dev/null 2> /dev/null
done
popd > /dev/null 2> /dev/null