[vlc-devel] [PATCH] Check tools with '-version' too

Geoffrey Métais geoffrey.metais at gmail.com
Tue Feb 10 12:05:23 CET 2015


Some tools, like ant, have -version arg and not --version
---
 extras/tools/bootstrap | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 49fa424..e22ad39 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"
-- 
2.1.0




More information about the vlc-devel mailing list