diff options
-rwxr-xr-x | cbt | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -47,16 +47,22 @@ log "Checking for dependencies" $* which javac 2>&1 > /dev/null javac_installed=$? if [ ! $javac_installed -eq 0 ]; then - echo "You need to install javac! CBT needs it to bootstrap from Java sources into Scala." 1>&2 - exit 1 -fi -javac_version=$(javac -version 2>&1 | cut -d ' ' -f 2) -javac_version_minor=$(echo -n $javac_version | cut -d '.' -f 2) -if [ ! "$javac_version_minor" -ge "7" ]; then - echo "You need to install javac version 1.7 or greater!" 2>&1 - echo "Current javac version is $javac_version" 2>&1 + echo "You need to install javac 1.7 or later! CBT needs it to bootstrap from Java sources into Scala." 1>&2 exit 1 fi + +# log "cutting javac version" $* +# javac_version=$(javac -version 2>&1) # e.g. "javac 1.8.0_u60" +# javac_version_update=${javac_version/javac 1./} # e.g. "8.0_u60" +# javac_version_minor_pointed=${javac_version_update%_*} # e.g. "8.0" +# javac_version_minor=${javac_version_minor_pointed%.*} # e.g. "8" +# log "cutting javac version done" $* +# if [ ! "$javac_version_minor" -ge "7" ]; then +# echo "You need to install javac version 1.7 or greater!" 2>&1 +# echo "Current javac version is $javac_version" 2>&1 +# exit 1 +# fi + which ng 2>&1 > /dev/null ng_installed=$? which ng-server 2>&1 > /dev/null |