[vlc-commits] tools: check if tar supports J option

Rafaël Carré git at videolan.org
Fri Nov 25 19:11:44 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Nov 25 13:03:54 2011 -0500| [0db7670783253822aca6086cdee6686ec1353202] | committer: Rafaël Carré

tools: check if tar supports J option

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0db7670783253822aca6086cdee6686ec1353202
---

 extras/tools/bootstrap |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 9a185eb..56d1b78 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -30,6 +30,11 @@ then
     echo "$1 not found"
     NEEDED="$NEEDED .$1"
 else
+    if [ "$1" = "xz" ] && ! tar PcJ /dev/null >/dev/null
+    then
+        echo "tar doesn't support xz (J option)"
+        NEEDED="$NEEDED .tar"
+    fi
     # found, need to check version ?
     [ -z "$2" ] && return # no
     # we only check GNU tools, their version have the form MAJOR.MINOR



More information about the vlc-commits mailing list