vlc | branch: master | Geoffrey Métais <[email protected]> | 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 <[email protected]>

> 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"

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to