[vlc-commits] Check tools with '-version' too

Geoffrey Métais git at videolan.org
Tue Feb 10 12:23:45 CET 2015


vlc | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 10 12:05:23 2015 +0100| [278b85aabee8334b9b51a092cecaf553b1668c09] | committer: Jean-Baptiste Kempf

Check tools with '-version' too

Some tools, like ant, have -version arg and not --version

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=278b85aabee8334b9b51a092cecaf553b1668c09
---

 extras/tools/bootstrap |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index da37a05..f3d9d4c 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -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"



More information about the vlc-commits mailing list