Original commit message from CVS:
fix X check
explain version check
+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
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