[vlc-devel] [PATCH 2/3] tools: detect the tool version in stdout as well
Steve Lhomme
robux4 at videolabs.io
Tue Oct 18 13:03:17 CEST 2016
on msys some tools give their versions in stdout instead of stderr
---
extras/tools/bootstrap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 01a15e6..e6d74ee 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -44,7 +44,7 @@ fi
}
check() {
-if ! $1 --version >/dev/null 2>&1 && ! $1 -version >/dev/null 2>&1
+if ! $1 --version >/dev/null 2>&1 && ! $1 -version >/dev/null 2>&1 && ! $1 --version 2>/dev/null
then
echo "$1 not found"
NEEDED="$NEEDED .$1"
--
2.8.2
More information about the vlc-devel
mailing list