diff options
author | Steve Baker <steve@stevebaker.org> | 2002-02-06 08:22:05 +0000 |
---|---|---|
committer | Steve Baker <steve@stevebaker.org> | 2002-02-06 08:22:05 +0000 |
commit | 6f724b266696a21a82c534e028eeef343599e29f (patch) | |
tree | 76e22ae6a7f208480539293d52491940021c4bb3 /autogen.sh | |
parent | aff68553db67edc63d13ffbe49f83f98c85f12a8 (diff) |
use numerical comparisions for version check
Original commit message from CVS:
use numerical comparisions for version check
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |