tFix for detection of program version numbers containing non-numerics, e.g. "2.53a" or "1.4-p1" - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a83175da69550ade8dd907457dc50954130dc573
 (DIR) parent 8bf3b0a8c834ea2074124279975d4833dbfc5f82
 (HTM) Author: Ben Webb <ben@salilab.org>
       Date:   Wed, 10 Jul 2002 19:35:45 +0000
       
       Fix for detection of program version numbers containing non-numerics,
       e.g. "2.53a" or "1.4-p1"
       
       
       Diffstat:
         M autogen.sh                          |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/autogen.sh b/autogen.sh
       t@@ -56,8 +56,8 @@ version_check ()
          pkg_version=`$PACKAGE --version|head -n 1|sed 's/^[a-zA-z\.\ ()]*//;s/^.* //'`
          debug "pkg_version $pkg_version"
          pkg_major=`echo $pkg_version | cut -d. -f1`
       -  pkg_minor=`echo $pkg_version | cut -d. -f2 | cut -d- -f1`
       -  pkg_micro=`echo $pkg_version | cut -d. -f3`
       +  pkg_minor=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f2`
       +  pkg_micro=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f3`
          test -z "$pkg_minor" && pkg_minor=0
          test -z "$pkg_micro" && pkg_micro=0