summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Baker <steve@stevebaker.org>2002-02-06 08:22:05 +0000
committerSteve Baker <steve@stevebaker.org>2002-02-06 08:22:05 +0000
commit6192403ffaf723a6190b03ca44c28a9f69ebbf7a (patch)
tree84b855f67dad990ca187b392647c405a8154a77a
parentd526f233ba69febc1d9a4191e072cfb8cf2a050d (diff)
downloadgst-plugins-bad-6192403ffaf723a6190b03ca44c28a9f69ebbf7a.tar.gz
gst-plugins-bad-6192403ffaf723a6190b03ca44c28a9f69ebbf7a.tar.bz2
gst-plugins-bad-6192403ffaf723a6190b03ca44c28a9f69ebbf7a.zip
use numerical comparisions for version check
Original commit message from CVS: use numerical comparisions for version check
-rwxr-xr-xautogen.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index 69d574ad..0b80f994 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