diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2019-02-22 23:11:47 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2019-02-22 23:11:47 +0000 |
commit | 5c6357cdb820b4f628d036ba7b2248f221d50c0b (patch) | |
tree | 6365552f2737faaffe63a395272da242ee2c4f03 /Master/texmf-dist/scripts/context/stubs/setup | |
parent | b4568bc71e054f3d1fd6404b45d2322631778284 (diff) |
ConTeXt version 2019.02.22 19:35
git-svn-id: svn://tug.org/texlive/trunk@50086 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/context/stubs/setup')
-rw-r--r-- | Master/texmf-dist/scripts/context/stubs/setup/setuptex | 18 | ||||
-rw-r--r-- | Master/texmf-dist/scripts/context/stubs/setup/setuptex.csh | 13 |
2 files changed, 29 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/context/stubs/setup/setuptex b/Master/texmf-dist/scripts/context/stubs/setup/setuptex index 9808140e400..fb65788b61a 100644 --- a/Master/texmf-dist/scripts/context/stubs/setup/setuptex +++ b/Master/texmf-dist/scripts/context/stubs/setup/setuptex @@ -24,9 +24,23 @@ cpu=`uname -m` case "$system" in # linux Linux) + if command -v ldd >/dev/null && ldd --version 2>&1 | grep -E '^musl' >/dev/null + then + libc=musl + else + libc=glibc + fi case "$cpu" in - i*86) platform="linux" ;; - x86_64|ia64) platform="linux-64" ;; + i*86) + case "$libc" in + glibc) platform="linux" ;; + musl) platform="linuxmusl" ;; + esac ;; + x86_64|ia64) + case "$libc" in + glibc) platform="linux-64" ;; + musl) platform="linuxmusl-64" ;; + esac ;; # a little bit of cheating with ppc64 (won't work on Gentoo) ppc|ppc64) platform="linux-ppc" ;; diff --git a/Master/texmf-dist/scripts/context/stubs/setup/setuptex.csh b/Master/texmf-dist/scripts/context/stubs/setup/setuptex.csh index c1160675fb4..62ca0356934 100644 --- a/Master/texmf-dist/scripts/context/stubs/setup/setuptex.csh +++ b/Master/texmf-dist/scripts/context/stubs/setup/setuptex.csh @@ -82,6 +82,19 @@ switch ( $system ) set platform="unknown" endsw breaksw + # OpenBSD + case OpenBSD: + switch ( $cpu ) + case i*86: + set platform="openbsd" + breaksw + case amd64: + set platform="openbsd-amd64" + breaksw + default: + set platform="unknown" + endsw + breaksw # cygwin case CYGWIN: switch ( $cpu ) |