summaryrefslogtreecommitdiff
path: root/init-tools.sh
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2017-09-14 04:52:39 +0200
committerJan Kotas <jkotas@microsoft.com>2017-09-13 19:52:39 -0700
commit8214509562a3686bcf878d4e54038ca883359bfc (patch)
tree6c4e8fe2268404507e1cb63dddb954f5d91a1799 /init-tools.sh
parent929a45749a1dfabe8cf232398d8611ca6766135b (diff)
downloadcoreclr-8214509562a3686bcf878d4e54038ca883359bfc.tar.gz
coreclr-8214509562a3686bcf878d4e54038ca883359bfc.tar.bz2
coreclr-8214509562a3686bcf878d4e54038ca883359bfc.zip
Enable end to end Alpine build (#13966)
This change enables full end to end build of coreclr including managed code on Alpine Linux.
Diffstat (limited to 'init-tools.sh')
-rwxr-xr-xinit-tools.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/init-tools.sh b/init-tools.sh
index 4ec011d48d..1dff622116 100755
--- a/init-tools.sh
+++ b/init-tools.sh
@@ -38,7 +38,15 @@ if [ -z "$__DOTNET_PKG" ]; then
__DOTNET_PKG=dotnet-dev-linux-x64
OS=Linux
- if [ -e /etc/redhat-release ]; then
+ if [ -e /etc/os-release ]; then
+ source /etc/os-release
+ if [[ $ID == "alpine" ]]; then
+ # remove the last version digit
+ VERSION_ID=${VERSION_ID%.*}
+ __DOTNET_PKG=dotnet-dev-alpine.$VERSION_ID-x64
+ fi
+
+ elif [ -e /etc/redhat-release ]; then
redhatRelease=$(</etc/redhat-release)
if [[ $redhatRelease == "CentOS release 6."* || $redhatRelease == "Red Hat Enterprise Linux Server release 6."* ]]; then
__DOTNET_PKG=dotnet-dev-rhel.6-x64