tFixed version detection magic so that it doesn't fail with automake-1.5. - 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 6081a8cf04b321bdd525879778926cc75eb96a31
(DIR) parent c02cbaaed3b33207b4066acf45b226119f7c9604
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sat, 20 Apr 2002 17:51:21 +0000
Fixed version detection magic so that it doesn't fail with automake-1.5.
Diffstat:
M autogen.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/autogen.sh b/autogen.sh
t@@ -53,7 +53,7 @@ version_check ()
return 1
}
# the following line is carefully crafted sed magic
- pkg_version=`$PACKAGE --version|head -n 1|sed 's/^[a-zA-z\.\ ()]*//;s/ .*$//'`
+ 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`