diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2007-02-01 01:51:09 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2007-02-01 01:51:09 +0000 |
| commit | 5827a12dc40c5edc066a418455dfdfc3faee022b (patch) | |
| tree | 1bb92cfe0d54b6d66f13084157b63d89413410ed | |
| parent | update from Tim (diff) | |
| download | inkscape-5827a12dc40c5edc066a418455dfdfc3faee022b.tar.gz inkscape-5827a12dc40c5edc066a418455dfdfc3faee022b.zip | |
* autogen.sh: Improve the versionCheck test to be more portable.
(bzr r2307)
| -rwxr-xr-x | autogen.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index b37c09b52..aa426d2f4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -34,7 +34,7 @@ MAJOR2=`echo "$2" | cut -d"." -f1`; MINOR2=`echo "$2" | cut -d"." -f2;` test -z "$MINOR1" && MINOR1="0"; -if (("$MAJOR1" > "$MAJOR2"))||(((("$MAJOR1" == "$MAJOR2")) && (("$MINOR1" \>= "$MINOR2")))); then +if [ "$MAJOR1" -gt "$MAJOR2" ] || [ "$MAJOR1" -eq "$MAJOR2" -a "$MINOR1" -ge "$MINOR2" ]; then echo "yes (version $1)" else echo "Too old (found version $1)!" |
