diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-03-13 00:53:19 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-03-25 16:21:26 +0300 |
commit | ba83f41d5d899e2e6f3e521b5b489123aa24b720 (patch) | |
tree | fa92b790fdb85b90431c492fc536da823f6cb6b5 /msvc-dispatch | |
parent | bea2cd6f5817e41f3ddb7d1a795648e52f9b7d05 (diff) |
Add support for 16.0
Diffstat (limited to 'msvc-dispatch')
-rwxr-xr-x | msvc-dispatch | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/msvc-dispatch b/msvc-dispatch index 5180487..984a1a5 100755 --- a/msvc-dispatch +++ b/msvc-dispatch @@ -13,24 +13,27 @@ function info () { echo "$*" 1>&2; } function error () { info "$*"; exit 1; } # Split the argument. The <version> itself should be <major>[minor] where -# <major> is digit-dot-only and minor should start with a non-digit-dot (e.g., -# u1, rc1, etc). +# <major> is digit-only and minor should start with the dot (e.g., .0). # arg=($(echo "$(basename "$src_exe")" | \ - sed -n -e 's/^\([^-]*\)-\([0-9.]*\)\([^-]*\)-\([^-]*\)$/\1 \4 \2 \3/p')) + sed -n -e 's/^\([^-]*\)-\([0-9]*\)\(\.[^-]\{1,\}\)\{0,1\}-\([^-]*\)$/\1 \4 \2 \3/p')) tool="${arg[0]}" target="${arg[1]}" major="${arg[2]}" minor="${arg[3]}" -MAJOR="${arg[2]^^}" -MINOR="${arg[3]^^}" +MAJOR="${major^^}" +MINOR="${minor^^}" if [ -z "$tool" -o -z "$major" -o -z "$target" ]; then error "invalid top-level script name" fi +# For the minor version used in variable names replace dots with underscores. +# +MINOR="$(echo "$MINOR" | sed -e 's/\./_/g')" + # Calculate MSVC_{WINEPREFIX,INSTALLDIR,SDKVERSION}. # # We have the following environment variable name hierarchy: |