[vlc-commits] tools: fix tar xv test on msys
Steve Lhomme
git at videolan.org
Fri May 25 12:02:42 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Oct 18 12:55:43 2016 +0200| [64778705fb1a505c62a67f139dd85b837c7947f2] | committer: Steve Lhomme
tools: fix tar xv test on msys
tar /dev/null doesn't work if not specified as a file
On systems where it was detected nothing will change. On systems where J is not working
it will fail anyway.
We already use "tar f" in the code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64778705fb1a505c62a67f139dd85b837c7947f2
---
extras/tools/bootstrap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 7856f3538b..6f77a0ff2a 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -60,7 +60,7 @@ check_version_majmin() {
}
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"
More information about the vlc-commits
mailing list