From 48638606945e579672f97b09cb797de3e6aee9e7 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 6 Feb 2002 13:21:31 +0000 Subject: [PATCH] applied steveb's numeric comparison patch made autogen swallow arguments meant for it cleaned up a few bits Original commit message from CVS: applied steveb's numeric comparison patch made autogen swallow arguments meant for it cleaned up a few bits --- gst-autogen.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gst-autogen.sh b/gst-autogen.sh index aaa3d8a..4f8881c 100644 --- a/gst-autogen.sh +++ b/gst-autogen.sh @@ -58,14 +58,14 @@ version_check () #start checking the version debug "version check" - if [ ! "$pkg_major" \> "$MAJOR" ]; then + if [ ! "$pkg_major" -gt "$MAJOR" ]; then debug "$pkg_major <= $MAJOR" - if [ "$pkg_major" \< "$MAJOR" ]; then + if [ "$pkg_major" -lt "$MAJOR" ]; then WRONG=1 - elif [ ! "$pkg_minor" \> "$MINOR" ]; then - if [ "$pkg_minor" \< "$MINOR" ]; then + elif [ ! "$pkg_minor" -gt "$MINOR" ]; then + if [ "$pkg_minor" -lt "$MINOR" ]; then WRONG=1 - elif [ "$pkg_micro" \< "$MICRO" ]; then + elif [ "$pkg_micro" -lt "$MICRO" ]; then WRONG=1 fi fi @@ -113,6 +113,8 @@ autogen_options () echo " --autogen-nocheck don't do version checks" echo " --autogen-debug debug the autogen process" exit 1 + else + CONFIGURE_EXT_OPT="$CONFIGURE_EXT_OPT $i" fi done } -- 2.7.4