[vlc-devel] [PATCH 3/3] tools: fix tar xv test on msys
Steve Lhomme
robux4 at videolabs.io
Tue Oct 18 13:03:18 CEST 2016
tar /dev/null doesn't work if not specified as a file
---
extras/tools/bootstrap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index e6d74ee..7a47b8b 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -25,7 +25,7 @@ then
fi
check_tar() {
-if ! tar PcJ /dev/null >/dev/null 2>&1
+if ! tar PcJ /dev/null >/dev/null 2>&1 && ! tar PcJf /dev/null /dev/null 2>&1
then
echo "tar doesn't support xz (J option)"
NEEDED="$NEEDED .tar .xz"
--
2.8.2
More information about the vlc-devel
mailing list