vlc | branch: master | Steve Lhomme <[email protected]> | 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"

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to