fix for when version check doesn't work well BRANCH-RELEASE-0_4_0-ROOT
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 27 Jun 2002 14:51:37 +0000 (14:51 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 27 Jun 2002 14:51:37 +0000 (14:51 +0000)
Original commit message from CVS:
fix for when version check doesn't work well

gst-autogen.sh

index 251d399..2dced48 100644 (file)
@@ -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