]> source.dussan.org Git - tigervnc.git/commitdiff
[Development] Handle .tar.gz Mesa archives in build-xorg script correctly.
authorAdam Tkac <atkac@redhat.com>
Wed, 15 Sep 2010 11:39:11 +0000 (11:39 +0000)
committerAdam Tkac <atkac@redhat.com>
Wed, 15 Sep 2010 11:39:11 +0000 (11:39 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4134 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/build-xorg

index 764f14ae28f43823aeec4cd32cc73c18cd9db362..98ee458756b151400fce501a106851fe88667b08 100755 (executable)
@@ -97,7 +97,12 @@ update_modules()
     for module in ${modules}; do
         tar jxf ~/.tigervnc-xorg-$XORG_VERSION/${module}.tar.bz2
     done
-    tar jxf ~/.tigervnc-xorg-$XORG_VERSION/Mesa.tar.bz2
+
+    [ -r ~/.tigervnc-xorg-$XORG_VERSION/Mesa.tar.bz2 ] && \
+        tar jxf ~/.tigervnc-xorg-$XORG_VERSION/Mesa.tar.bz2
+    [ -r ~/.tigervnc-xorg-$XORG_VERSION/Mesa.tar.gz ] && \
+        tar zxf ~/.tigervnc-xorg-$XORG_VERSION/Mesa.tar.gz
+
     tar jxf ~/.tigervnc-xorg-$XORG_VERSION/freetype.tar.bz2
     tar jxf ~/.tigervnc-xorg-$XORG_VERSION/xorg-server.tar.bz2
     cp -r $SRCDIR/unix/xserver xserver