| … | |
… | |
| 106 | |
106 | |
| 107 | local x=${1%%-*} |
107 | local x=${1%%-*} |
| 108 | local KV_MAJOR=${x%%.*} |
108 | local KV_MAJOR=${x%%.*} |
| 109 | x=${x#*.} |
109 | x=${x#*.} |
| 110 | local KV_MINOR=${x%%.*} |
110 | local KV_MINOR=${x%%.*} |
| 111 | x=${1#*.*.} |
111 | x=${x#*.} |
| 112 | local KV_MICRO=${x%%.*} |
112 | local KV_MICRO=${x%%.*} |
| 113 | local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} )) |
113 | local KV_int=$((${KV_MAJOR} * 65536 + ${KV_MINOR} * 256 + ${KV_MICRO} )) |
| 114 | |
114 | |
| 115 | # We make version 2.2.0 the minimum version we will handle as |
115 | # We make version 2.2.0 the minimum version we will handle as |
| 116 | # a sanity check ... if its less, we fail ... |
116 | # a sanity check ... if its less, we fail ... |