Merge pull request #326 from melted/win_clean

No need to check for BSD on Windows
This commit is contained in:
Niklas Larsson 2020-06-18 14:50:16 +02:00 committed by GitHub
commit 649e1989e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,16 +367,6 @@ startChezWinSh : String -> String -> String -> String
startChezWinSh chez appdir target = unlines startChezWinSh chez appdir target = unlines
[ "#!/bin/sh" [ "#!/bin/sh"
, "" , ""
, "case `uname -s` in "
, " OpenBSD|FreeBSD|NetBSD) "
, " DIR=\"`grealpath $0`\""
, " ;; "
, " "
, " *) "
, " DIR=\"`realpath $0`\" "
, " ;; "
, "esac "
, ""
, "CHEZ=$(cygpath \"" ++ chez ++"\")" , "CHEZ=$(cygpath \"" ++ chez ++"\")"
, "export PATH=\"`dirname \"$DIR\"`/\"" ++ appdir ++ "\":$PATH\"" , "export PATH=\"`dirname \"$DIR\"`/\"" ++ appdir ++ "\":$PATH\""
, "$CHEZ --script \"$(dirname \"$DIR\")/" ++ target ++ "\" \"$@\"" , "$CHEZ --script \"$(dirname \"$DIR\")/" ++ target ++ "\" \"$@\""