summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 6f7e786)
raw | patch | inline | side by side (from parent 1: 6f7e786)
author | keescook <keescook@users.sourceforge.net> | |
Sun, 3 Dec 2006 04:11:08 +0000 (04:11 +0000) | ||
committer | keescook <keescook@users.sourceforge.net> | |
Sun, 3 Dec 2006 04:11:08 +0000 (04:11 +0000) |
autogen.sh | patch | blob | history |
diff --git a/autogen.sh b/autogen.sh
index 16ac28c9bc6e813772a436685b797604f5c04342..1afc947ff1d376e57d00838c22547d4ccbbe9bdd 100755 (executable)
--- a/autogen.sh
+++ b/autogen.sh
check_version ()
{
-MAJOR1=`echo $1 | cut -d"." -f1`;
-MINOR1=`echo $1 | cut -s -d"." -f2`;
-MAJOR2=`echo $2 | cut -d"." -f1`;
-MINOR2=`echo $2 | cut -d"." -f2;`
+MAJOR1=`echo "$1" | cut -d"." -f1`;
+MINOR1=`echo "$1" | cut -s -d"." -f2`;
+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