From: Steve Baker Date: Wed, 6 Feb 2002 08:22:05 +0000 (+0000) Subject: use numerical comparisions for version check X-Git-Tag: 1.19.3~511^2~16158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28ccb78b5680b1128d73e08f5b2208e1076344e8;p=platform%2Fupstream%2Fgstreamer.git use numerical comparisions for version check Original commit message from CVS: use numerical comparisions for version check --- diff --git a/autogen.sh b/autogen.sh index 69d574adad..0b80f9947e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -83,14 +83,14 @@ version_check () #start checking the version debug "version check" - if [ ! "$pkg_major" \> "$MAJOR" ]; then - debug "$pkg_major <= $MAJOR" - if [ "$pkg_major" \< "$MAJOR" ]; then + if [ ! "$pkg_major" -gt "$MAJOR" ]; then + debug "$pkg_major -le $MAJOR" + 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