[vlc-commits] Check tools with '-version' too
Geoffrey Métais
git at videolan.org
Mon Feb 16 20:44:08 CET 2015
vlc/vlc-2.2 | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 10 12:05:23 2015 +0100| [92a48138115bb5e6dc49a6dca5743a7842619c3d] | 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>
(cherry picked from commit 278b85aabee8334b9b51a092cecaf553b1668c09)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=92a48138115bb5e6dc49a6dca5743a7842619c3d
---
extras/tools/bootstrap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 29a72f4..b408d34 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