/[baselayout]/trunk/sh/functions.sh
Gentoo

Diff of /trunk/sh/functions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2688 Revision 2689
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 ...

Legend:
Removed from v.2688  
changed lines
  Added in v.2689

  ViewVC Help
Powered by ViewVC 1.1.20