detect windows and cygwin

This commit is contained in:
abbie 2024-11-12 18:58:36 +00:00
parent 4a5daff432
commit 2197cae12e
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C

View file

@ -25,3 +25,10 @@ fi
if [ "$(uname -s)" = "Haiku" ] && [ "$system_type" = "unknown" ]; then if [ "$(uname -s)" = "Haiku" ] && [ "$system_type" = "unknown" ]; then
system_type="haiku" system_type="haiku"
fi fi
command -v winver.exec >>/dev/null
if [ "$?" -eq 0 ] && ["$system_type" = "unknown" ]; then
system_type="windows"
if [ "$(uname -o)" = "Cygwin" ]; then
subtype="cygwin"
fi
fi