fix X check explain version check

Original commit message from CVS:
fix X check
explain version check
parent 5557aa07
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment