Diff

Differences From Artifact [9be2fc0b9c]:

To Artifact [55c7ca7ba6]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23


24
25


26
27
28


29
30
31
32
33
34
35
#! /bin/bash

if [ ! -x "../platform" ]; then
	echo "No platform script found, aborting." >&2

	exit 1
fi

if [ "${PLATFORM}" != "tcl" ]; then
	rm -rf out

	exit 0
fi

VERS=1.13
SRC="src/tcllib-${VERS}.tar.gz"
SRCURL="http://sourceforge.net/projects/tcllib/files/tcllib/${VERS}/tcllib-${VERS}.tar.gz/download"
BUILDDIR="tcllib-${VERS}"
WORKDIR="${TMPDIR:-/tmp}/tcllib-$$${RANDOM}${RANDOM}${RANDOM}"
PLATDIR="$(pwd)/out/${PLATFORM}"

export VERS SRC SRCURL BUILDDIR WORKDIR PLATFORM PLATDIR



if [ ! -f "${SRC}" ]; then
	mkdir src >/dev/null 2>/dev/null



	wget -O "${SRC}" "${SRCURL}" || exit 1
fi



rm -rf "${WORKDIR}" >/dev/null 2>/dev/null
mkdir -p "${WORKDIR}" || exit 1

retval=0
(
	rm -rf build


<
<
<
<
<
<
<
<
<
<
<
<




<
<
<
|

>
>
|
<
>
>

<
<
>
>







1
2












3
4
5
6



7
8
9
10
11

12
13
14


15
16
17
18
19
20
21
22
23
#! /bin/bash













VERS=1.13
SRC="src/tcllib-${VERS}.tar.gz"
SRCURL="http://sourceforge.net/projects/tcllib/files/tcllib/${VERS}/tcllib-${VERS}.tar.gz/download"
BUILDDIR="tcllib-${VERS}"



export VERS SRC SRCURL BUILDDIR

# Load common functions
source ../common.sh


# Do not build if the "tcl" platform has NOT been requested
only_platforms 'tcl'



# Download source
download_src

rm -rf "${WORKDIR}" >/dev/null 2>/dev/null
mkdir -p "${WORKDIR}" || exit 1

retval=0
(
	rm -rf build