diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-16 18:00:19 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-16 18:00:19 +0000 |
commit | 581b12ce0812d391c32f212b9887be333bcdb420 (patch) | |
tree | 14a01f3e497facb7889f6cf15152ae7bcb0050f5 | |
parent | 5557aa074c4836b2cc9eac0e1519323df1cb876f (diff) | |
download | gstreamer-common-581b12ce0812d391c32f212b9887be333bcdb420.tar.gz |
fix X check explain version check
Original commit message from CVS:
fix X check
explain version check
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst-autogen.sh | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2004-03-16 Thomas Vander Stichele <thomas at apestaart dot org> + + reviewed by: <delete if not using a buddy> + + * gst-autogen.sh: + 2004-03-09 Thomas Vander Stichele <thomas at apestaart dot org> patch by: Stephane Loeuillet diff --git a/gst-autogen.sh b/gst-autogen.sh index b79f27a..6b4c729 100644 --- a/gst-autogen.sh +++ b/gst-autogen.sh @@ -60,9 +60,7 @@ version_check () echo "not found." continue } - # the following line is carefully crafted sed magic - # you don't want to mess with it - #pkg_version=`$COMMAND --version|head -n 1|sed 's/^[a-zA-z\.\ ()]*//;s/ .*$//'` + # strip everything that's not a digit, then use cut to get the first field pkg_version=`$COMMAND --version|head -n 1|sed 's/^[^0-9]*//'|cut -d' ' -f1` debug "pkg_version $pkg_version" # remove any non-digit characters from the version numbers to permit numeric |