[PATCH modular 3/7] build.sh: add support for the xz archive file format
Gaetan Nadon
memsize at videotron.ca
Fri Oct 18 15:44:56 CEST 2013
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 at videotron.ca>
---
build.sh | 17 ++++++++++++-----
1 file 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
--
1.7.9.5
More information about the xorg-devel
mailing list