Diff

Differences From Artifact [ce188ee01b]:

To Artifact [6e15606227]:


     1      1   #! /bin/bash
     2      2   
     3         -if [ ! -x "../platform" ]; then
     4         -	echo "No platform script found, aborting." >&2
     5         -
     6         -	exit 1
     7         -fi
     8         -
     9         -if [ "${PLATFORM}" = "tcl" ]; then
    10         -	rm -rf out
    11         -
    12         -	exit 0
    13         -fi
    14         -
            3  +# Define parameters
    15      4   VERS=1.6
    16      5   SRC="src/tls${VERS}-src.tar.gz"
    17      6   SRCURL="http://sourceforge.net/projects/tls/files/tls/${VERS}/tls${VERS}-src.tar.gz/download"
    18      7   BUILDDIR="tls${VERS}"
    19         -WORKDIR="${TMPDIR:-/tmp}/tls-$$${RANDOM}${RANDOM}${RANDOM}"
    20      8   PATCHDIR="$(pwd)/patches"
    21         -PLATDIR="$(pwd)/out/${PLATFORM}"
            9  +export VERS SRC SRCURL BUILDDIR PATCHDIR
    22     10   
    23         -export VERS SRC SRCURL BUILDDIR WORKDIR PATCHDIR PLATDIR
           11  +# Load common functions
           12  +source ../common.sh
    24     13   
    25         -if [ ! -f "${SRC}" ]; then
    26         -	mkdir src >/dev/null 2>/dev/null
           14  +# Do not build if the "tcl" platform has been requested
           15  +not_platforms 'tcl'
    27     16   
    28         -	wget -O "${SRC}" "${SRCURL}" || exit 1
    29         -fi
           17  +# Download source
           18  +download_src
    30     19   
    31     20   (
    32     21   	rm -rf build
    33     22   	mkdir build
    34     23   	cd build/ || exit 1
    35     24   
    36     25   	gzip -dc "../${SRC}" | tar -xf -