Check-in [2631d4cf7d]
Overview
Comment:Updated to download TCC
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2631d4cf7d0a21ffb61d044e8fc892614f860c33
User & Date: rkeene on 2014-05-01 23:13:12
Other Links: manifest | tags
Context
2014-05-01
23:32
Updated to build Tcc naively check-in: a319c993d9 user: rkeene tags: trunk
23:13
Updated to download TCC check-in: 2631d4cf7d user: rkeene tags: trunk
22:58
Updated to create initial directory check-in: 07b3ee6214 user: rkeene tags: trunk
Changes

Added .fossil-settings/ignore-glob version [0f084d884a].

            1  +aclocal.m4
            2  +aclocal/shobj.m4
            3  +aclocal/tcl.m4
            4  +aclocal/versionscript.m4
            5  +config.guess
            6  +config.sub
            7  +config.log
            8  +config.status
            9  +configure
           10  +install-sh
           11  +Makefile
           12  +pkgIndex.tcl
           13  +tcc/*

Modified Makefile.in from [cb04ffc8c0] to [0567345519].

    39     39   distclean: clean
    40     40   	rm -rf autom4te.cache
    41     41   	rm -f config.log config.status
    42     42   	rm -f pkgIndex.tcl
    43     43   	rm -f Makefile
    44     44   
    45     45   mrproper: distclean
           46  +	rm -rf __TMP__
           47  +	rm -rf tcc
    46     48   	rm -f configure aclocal.m4
    47     49   	rm -f config.guess config.sub install-sh
    48     50   
    49     51   .PHONY: all install clean distclean mrproper

Modified build/pre.sh from [7fa536bdae] to [a68c94db4c].

     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  +tcc_version='0.9.26'
           10  +tcc_url="http://download.savannah.gnu.org/releases/tinycc/tcc-${tcc_version}.tar.bz2"
           11  +tcc_sha256='521e701ae436c302545c3f973a9c9b7e2694769c71d9be10f70a2460705b6d71'
           12  +(
           13  +	rm -rf __TMP__
           14  +	mkdir __TMP__ || exit 1
           15  +	cd __TMP__ || exit 1
           16  +
           17  +	wget -O 'new' "${tcc_url}" || rm -f new
           18  +	new_sha256="$(openssl sha256 new | sed 's@.*= *@@')"
           19  +
           20  +	if [ "${new_sha256}" != "${tcc_sha256}" ]; then
           21  +		echo "Checksum Mismatch: Downloaded: ${new_sha256}; Expected: ${tcc_sha256}" >&2
           22  +
           23  +		rm -f new
           24  +
           25  +		exit 1
           26  +	fi
           27  +
           28  +	mv new "tcc-${tcc_version}.tar.bz2"
           29  +
           30  +	bzip2 -dc "tcc-${tcc_version}.tar.bz2" | tar -xf -
           31  +
           32  +	rm -f "tcc-${tcc_version}.tar.bz2"
           33  +
           34  +	rm -rf ../tcc
           35  +	mkdir ../tcc || exit 1
           36  +	mv */* ../tcc/
           37  +)
           38  +rm -rf __TMP__