mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
use numerical comparisions for version check
Original commit message from CVS: use numerical comparisions for version check
This commit is contained in:
parent
3f0b94c40e
commit
28ccb78b56
1 changed files with 6 additions and 6 deletions
12
autogen.sh
12
autogen.sh
|
@ -83,14 +83,14 @@ version_check ()
|
||||||
#start checking the version
|
#start checking the version
|
||||||
debug "version check"
|
debug "version check"
|
||||||
|
|
||||||
if [ ! "$pkg_major" \> "$MAJOR" ]; then
|
if [ ! "$pkg_major" -gt "$MAJOR" ]; then
|
||||||
debug "$pkg_major <= $MAJOR"
|
debug "$pkg_major -le $MAJOR"
|
||||||
if [ "$pkg_major" \< "$MAJOR" ]; then
|
if [ "$pkg_major" -lt "$MAJOR" ]; then
|
||||||
WRONG=1
|
WRONG=1
|
||||||
elif [ ! "$pkg_minor" \> "$MINOR" ]; then
|
elif [ ! "$pkg_minor" -gt "$MINOR" ]; then
|
||||||
if [ "$pkg_minor" \< "$MINOR" ]; then
|
if [ "$pkg_minor" -lt "$MINOR" ]; then
|
||||||
WRONG=1
|
WRONG=1
|
||||||
elif [ "$pkg_micro" \< "$MICRO" ]; then
|
elif [ "$pkg_micro" -lt "$MICRO" ]; then
|
||||||
WRONG=1
|
WRONG=1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue