[vlc-devel] [PATCH 2/3] tools: detect the tool version in stdout as well
Rémi Denis-Courmont
remi at remlab.net
Tue Oct 18 16:33:18 CEST 2016
Le tiistaina 18. lokakuuta 2016, 13.03.17 EEST Steve Lhomme a écrit :
> on msys some tools give their versions in stdout instead of stderr
I don´t see why that needs a patch, or how it explains it.
2>&1 redirects stderr to stdout, so it should not matter which one the program
outputs to.
> ---
> 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"
--
Rémi Denis-Courmont
Nonsponsored VLC developer
http://www.remlab.net/CV.pdf
More information about the vlc-devel
mailing list