diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-06-27 14:51:37 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-06-27 14:51:37 +0000 |
commit | c6bd62c43f01b2012d81dfa61dd58777c41de07a (patch) | |
tree | e01473768bed5c0bf50221ef32b5aca85c5fdf20 | |
parent | 4dab76096cb84988dc2b6366cf5bd964fe5857d7 (diff) |
fix for when version check doesn't work wellBRANCH-RELEASE-0_4_0-ROOT
Original commit message from CVS:
fix for when version check doesn't work well
-rw-r--r-- | gst-autogen.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-autogen.sh b/gst-autogen.sh index 251d399..2dced48 100644 --- a/gst-autogen.sh +++ b/gst-autogen.sh @@ -74,6 +74,7 @@ version_check () pkg_major=`echo $pkg_version | cut -d. -f1 | sed s/[a-zA-Z\-].*//g` pkg_minor=`echo $pkg_version | cut -d. -f2 | sed s/[a-zA-Z\-].*//g` pkg_micro=`echo $pkg_version | cut -d. -f3 | sed s/[a-zA-Z\-].*//g` + test -z "$pkg_major" && pkg_major=0 test -z "$pkg_minor" && pkg_minor=0 test -z "$pkg_micro" && pkg_micro=0 |