]> git.sesse.net Git - vlc/commitdiff
Couldn't bootstrap properly if a number existed anywhere in the path
authorBernie Purcell <bitmap@videolan.org>
Mon, 24 Sep 2007 05:30:51 +0000 (05:30 +0000)
committerBernie Purcell <bitmap@videolan.org>
Mon, 24 Sep 2007 05:30:51 +0000 (05:30 +0000)
to gettextize (eg. if I was building inside a directory called win32)

bootstrap

index af4224432b450d226e4a21aa320cf94059e01cc6..6e38094623ba54794e600d035c94359d8baf681b 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -116,7 +116,7 @@ fi
 # Check for gettext
 if gettextize --version >/dev/null 2>&1; then
 # Autopoint is available from 0.11.3, but we need 0.11.5
-if expr `gettextize --version | sed -e '1s/[^0-9]*//' -e q` \
+if expr `gettextize --version |cut -d' ' -f2- | sed -e '1s/[^0-9]*//' -e q` \
         '>=' 0.11.5 >/dev/null 2>&1; then
   # We have gettext, and a recent version! Everything is cool.
   autopoint=autopoint