]> git.sesse.net Git - vlc/commitdiff
Check tools with '-version' too
authorGeoffrey Métais <geoffrey.metais@gmail.com>
Tue, 10 Feb 2015 11:05:23 +0000 (12:05 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 10 Feb 2015 11:23:35 +0000 (12:23 +0100)
Some tools, like ant, have -version arg and not --version

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
extras/tools/bootstrap

index da37a05eb580fc1c8adaecd5b96a8039cdb2b527..f3d9d4ce122f2218c352d80c1ebb4c352831fc20 100755 (executable)
@@ -44,7 +44,7 @@ fi
 }
 
 check() {
-if ! $1 --version >/dev/null 2>&1
+if ! $1 --version >/dev/null 2>&1 && ! $1 -version >/dev/null 2>&1
 then
     echo "$1 not found"
     NEEDED="$NEEDED .$1"