diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2013-10-14 08:50:24 -0400 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2013-10-24 15:58:11 -0400 |
commit | ccdf461fb255d494be75797545588fd332754436 (patch) | |
tree | b58fdb672c4ee7699288bdeb8c8cc7f0d23e3939 | |
parent | bb5104484591a68036b50aa014456e044e214e2a (diff) |
build.sh: add support for the xz archive file format
There is one non-xorg project (libevdev) upon which xorg depends
that is using this format. Most likely others will follow.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rwxr-xr-x | build.sh | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -251,16 +251,23 @@ checkfortars() { ;; esac for ii in $module .; do - for jj in bz2 gz; do + for jj in bz2 gz xz; do TARFILE=`ls -1rt $ii${component:+/}$component-*.tar.$jj 2> /dev/null | tail -n 1` if [ X"$TARFILE" != X ]; then SRCDIR=`echo $TARFILE | sed "s,.tar.$jj,,"` SRCDIR=`echo $SRCDIR | sed "s,MesaLib,Mesa,"` if [ ! -d $SRCDIR ]; then - TAROPTS=xjf - if [ X"$jj" = X"gz" ]; then - TAROPTS=xzf - fi + case $jj in + "bz2") + TAROPTS=xjf + ;; + "gz") + TAROPTS=xzf + ;; + "xz") + TAROPTS=xJf + ;; + esac tar $TAROPTS $TARFILE -C $ii if [ $? -ne 0 ]; then failed tar $module $component |