summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2013-10-14 08:50:24 -0400
committerGaetan Nadon <memsize@videotron.ca>2013-10-24 15:58:11 -0400
commitccdf461fb255d494be75797545588fd332754436 (patch)
treeb58fdb672c4ee7699288bdeb8c8cc7f0d23e3939
parentbb5104484591a68036b50aa014456e044e214e2a (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-xbuild.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 0349254..6c6deb0 100755
--- a/build.sh
+++ b/build.sh
@@ -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