[banshee] [build] Ignore letter suffixes in autotools versions
- From: Bertrand Lorentz <blorentz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [build] Ignore letter suffixes in autotools versions
- Date: Wed, 16 Dec 2009 20:53:27 +0000 (UTC)
commit 29a4e4bb0faa873664b90591e338aaa7d0bed2d5
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Wed Dec 16 21:47:49 2009 +0100
[build] Ignore letter suffixes in autotools versions
Filter out letter suffixes in the version number reported by the autools
stuff. Fixes a harmless error message while running autogen.sh with
libtool 2.2.6b.
autogen.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index abff428..9d7fefa 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,7 +15,7 @@ function check_autotool_version () {
version=$($1 --version | head -n 1 | cut -f4 -d' ')
major=$(echo $version | cut -f1 -d.)
minor=$(echo $version | cut -f2 -d.)
- rev=$(echo $version | cut -f3 -d.)
+ rev=$(echo $version | cut -f3 -d. | sed 's/[^0-9].*$//')
major_check=$(echo $2 | cut -f1 -d.)
minor_check=$(echo $2 | cut -f2 -d.)
rev_check=$(echo $2 | cut -f3 -d.)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]