fixes to supply of options and actual version extraction
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 18 Apr 2002 20:34:43 +0000 (20:34 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 18 Apr 2002 20:34:43 +0000 (20:34 +0000)
Original commit message from CVS:
fixes to supply of options and actual version extraction

gst-autogen.sh

index 979e68f..39075f0 100644 (file)
@@ -27,7 +27,7 @@ version_check ()
 
   if test ! -z "$PKG_PATH"
   then
-    COMMAND="$PKG_PATH/$PACKAGE"
+    COMMAND="$PKG_PATH"
   else
     COMMAND="$PACKAGE"  
   fi
@@ -61,7 +61,8 @@ version_check ()
        return 1
   }
   # the following line is carefully crafted sed magic
-  pkg_version=`$COMMAND --version|head -n 1|sed 's/^[a-zA-z\/\.\ ()]*//;s/ .*$//'`
+  #pkg_version=`$COMMAND --version|head -n 1|sed 's/^[a-zA-z\.\ ()]*//;s/ .*$//'`
+  pkg_version=`$COMMAND --version|head -n 1|sed 's/^.*) //'|sed 's/ (.*)//'`
   debug "pkg_version $pkg_version"
   # remove any non-digit characters from the version numbers to permit numeric
   # comparison