Diff

Differences From Artifact [7fa536bdae]:

To Artifact [29bd57d26a]:


     1      1   #! /bin/bash
     2      2   
     3      3   cd "$(dirname "$(which "$0")")/.." || exit 1
     4      4   
     5      5   # Generate configure script
     6      6   ./build/autogen.sh
            7  +
            8  +# Download TCC
            9  +(
           10  +	TCC_VERSION="0.9.26"
           11  +	TCC_URL="http://download.savannah.gnu.org/releases/tinycc/tcc-${TCC_VERSION}.tar.bz2"
           12  +	TCC_SHA256='521e701ae436c302545c3f973a9c9b7e2694769c71d9be10f70a2460705b6d71'
           13  +
           14  +	rm -rf __TMP__
           15  +	mkdir __TMP__ || exit 1
           16  +	cd __TMP__ || exit 1
           17  +	wget -O tcc.tar.bz2.new "${TCC_URL}" || rm -f tcc.tar.bz2.new
           18  +	TCC_NEW_SHA256="$(openssl sha256 < tcc.tar.bz2.new | sed 's@.*= *@@')"
           19  +
           20  +	if [ "${TCC_NEW_SHA256}" = "${TCC_SHA256}" ]; then
           21  +		mv tcc.tar.bz2.new tcc.tar.bz2
           22  +	fi
           23  +
           24  +	tar -xf tcc.tar.bz2
           25  +	rm -f tcc.tar.bz2
           26  +
           27  +	rm -rf ../tcc
           28  +	mkdir ../tcc || exit 1
           29  +	mv */* ../tcc/
           30  +)
           31  +rm -rf __TMP__