diff options
author | Seth Tisue <seth@tisue.net> | 2015-09-25 14:59:49 -0400 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2015-09-25 14:59:49 -0400 |
commit | 27da46343cd545534819300235bc64ab74958c92 (patch) | |
tree | 88d4e4fda7a4125699922ba976d13b2a9b1c5317 /src/compiler | |
parent | 09a18035085d7f629488b404e293ff9f145b6641 (diff) | |
parent | 831f91248b6e6382116e7e46ac0a75a3eb8d7caf (diff) | |
download | scala-27da46343cd545534819300235bc64ab74958c92.tar.gz scala-27da46343cd545534819300235bc64ab74958c92.tar.bz2 scala-27da46343cd545534819300235bc64ab74958c92.zip |
Merge pull request #4674 from kirillkh/2.11.x
add support for MSys2 to bin/scala shell script
Diffstat (limited to 'src/compiler')
-rwxr-xr-x | src/compiler/scala/tools/ant/templates/tool-unix.tmpl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/ant/templates/tool-unix.tmpl b/src/compiler/scala/tools/ant/templates/tool-unix.tmpl index 6e91a2a202..5e6b3c041e 100755 --- a/src/compiler/scala/tools/ant/templates/tool-unix.tmpl +++ b/src/compiler/scala/tools/ant/templates/tool-unix.tmpl @@ -67,6 +67,11 @@ if uname | grep -q ^MINGW; then mingw="$(uname)" fi +unset msys +if uname | grep -q ^MSYS; then + msys="$(uname)" +fi + # Finding the root folder for this Scala distribution SCALA_HOME="$(findScalaHome)" SEP=":" @@ -111,9 +116,9 @@ if [[ -n "$cygwin" ]]; then TOOL_CLASSPATH="$(cygpath --path --$format "$TOOL_CLASSPATH")" fi -if [[ -n "$cygwin$mingw" ]]; then +if [[ -n "$cygwin$mingw$msys" ]]; then case "$TERM" in - rxvt* | xterm*) + rxvt* | xterm* | cygwin*) stty -icanon min 1 -echo WINDOWS_OPT="-Djline.terminal=unix" ;; @@ -182,10 +187,10 @@ fi declare -a classpath_args -# default to the boot classpath for speed, except on cygwin/mingw because +# default to the boot classpath for speed, except on cygwin/mingw/msys because # JLine on Windows requires a custom DLL to be loaded. unset usebootcp -if [[ -z "$cygwin$mingw" ]]; then +if [[ -z "$cygwin$mingw$msys" ]]; then usebootcp="true" fi |