From: Bart Van Assche Date: Fri, 4 Jul 2008 14:47:27 +0000 (+0000) Subject: Support .tar.gz archives next to .tar.bz2 archives. X-Git-Tag: svn/VALGRIND_3_4_0~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1630410434f51bb1d939525d6a51bb2bb69d99a7;p=thirdparty%2Fvalgrind.git Support .tar.gz archives next to .tar.bz2 archives. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8359 --- diff --git a/exp-drd/scripts/download-and-build-gcc b/exp-drd/scripts/download-and-build-gcc index 4f3a48ab7d..edefd94627 100755 --- a/exp-drd/scripts/download-and-build-gcc +++ b/exp-drd/scripts/download-and-build-gcc @@ -34,7 +34,13 @@ mkdir -p ${BUILD} || exit $? cd ${BUILD} || exit $? if [ ! -e $DOWNLOADS/$TAR ]; then - ( cd $DOWNLOADS && wget -q $FSF_MIRROR/gcc/gcc-${GCC_VERSION}/$TAR ) +( + if cd $DOWNLOADS; then + wget -q $FSF_MIRROR/gcc/gcc-${GCC_VERSION}/$TAR \ + || { wget -q -O- $FSF_MIRROR/gcc/gcc-${GCC_VERSION}/${TAR%bz2}gz \ + | gzip -cd | bzip2 -9 >${TAR}; } + fi +) fi if [ ! -e $SRC ]; then