Diff

Differences From Artifact [7e265f11b2]:

To Artifact [9121776c39]:


     1      1   #! /usr/bin/env bash
     2      2   
     3      3   TCLLIB_VERS='1.16'
     4      4   SRC="src/tcllib-${TCLLIB_VERS}.tar.bz2"
     5      5   SRCURL="http://sourceforge.net/projects/tcllib/files/tcllib/${TCLLIB_VERS}/tcllib-${TCLLIB_VERS}.tar.bz2"
            6  +SRCHASH='-'
     6      7   BUILDDIR="$(pwd)/build/Tcllib-${TCLLIB_VERS}"
     7      8   OUTDIR="$(pwd)/out"
     8      9   INSTDIR="$(pwd)/inst"
     9     10   PATCHDIR="$(pwd)/patches"
    10     11   export TCLLIB_VERS SRC SRCURL BUILDDIR OUTDIR INSTDIR PATCHDIR
    11     12   
    12     13   rm -rf 'build' 'out' 'inst'
    13     14   mkdir 'build' 'out' 'inst' || exit 1
    14     15   
    15     16   if [ ! -f "${SRC}" ]; then
    16     17   	mkdir 'src' >/dev/null 2>/dev/null
    17     18   
    18     19   	if [ ! -d 'buildsrc' ]; then
    19         -		download "${SRCURL}" "${SRC}" - || exit 1
           20  +		download "${SRCURL}" "${SRC}" "${SRCHASH}" || exit 1
    20     21   	fi
    21     22   fi
    22     23   
    23     24   (
    24     25   	cd 'build' || exit 1
    25     26   
    26     27   	if [ ! -d '../buildsrc' ]; then