Diff

Differences From Artifact [09724f9222]:

To Artifact [2e77c6d186]:


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
36
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


-
-
-
+
-
-
-
-
-
-
-
-
-





-
-
-
-
+

+
+
-
-
+
+
+

-
+
-
+







#! /bin/bash

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

# Define parameters
	exit 1
fi

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

	exit 0
fi

VERS=3.7.2
VERSUNDER="$(echo "${VERS}" | sed 's@\.@_@g')"
SRC="src/sqlite-${VERSUNDER}.tar.gz"
SRCURL="http://www.sqlite.org/sqlite-${VERSUNDER}-tea.tar.gz"
BUILDDIR="sqlite${VERS}"
WORKDIR="${TMPDIR:-/tmp}/sqlite-$$${RANDOM}${RANDOM}${RANDOM}"
PLATDIR="$(pwd)/out/${PLATFORM}"

export VERS SRC SRCURL BUILDDIR WORKDIR PLATDIR
export VERS SRC SRCURL BUILDDIR

# Load common functions
source ../common.sh
if [ ! -f "${SRC}" ]; then
	mkdir src >/dev/null 2>/dev/null

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

	wget -O "${SRC}" "${SRCURL}" || exit 1
# Download source
fi
download_src

(
	rm -rf build
	mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null
	mkdir build

	cd build/ || exit 1