Check-in [b949baf854]
Overview
SHA1:b949baf854c13dafe39a64734d1b1835f06d1c43
Date: 2016-09-06 05:28:25
User: rkeene
Comment:Added support for applying patches to new build system
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-09-06
05:32
[c4271b4b95] Updated new build system to use a directory structure closer resembling the old one for building (user: rkeene, tags: trunk)
05:28
[b949baf854] Added support for applying patches to new build system (user: rkeene, tags: trunk)
05:18
[79bd6dfe51] Updated TLS package to use new simplified build system, requiring further refinement as well (user: rkeene, tags: trunk)
Changes

Modified common/common.sh from [dbcc3cc417] to [5f5dece2ba].

3
4
5
6
7
8
9

10
11
12
13
14
15
16
...
112
113
114
115
116
117
118

119










120
121
122
123
124
125
126
targetInstallEnvironment='kitcreator'
pkgdir="$(pwd)"
internalpkgname="${pkg}"
archivedir="${pkgdir}/src"
buildsrcdir="${pkgdir}/buildsrc"
installdir="${pkgdir}/inst"
runtimedir="${pkgdir}/out"

workdir="${pkgdir}/workdir-$$${RANDOM}${RANDOM}${RANDOM}${RANDOM}.work"

_download="$(which download)"

function clean() {
	rm -rf "${installdir}" "${runtimedir}"
}
................................................................................
		) || return 1
	fi

	return 0
}

function apply_patches() {

	:










}

function preconfigure() {
	:
}

function configure() {







>







 







>
|
>
>
>
>
>
>
>
>
>
>







3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
...
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
targetInstallEnvironment='kitcreator'
pkgdir="$(pwd)"
internalpkgname="${pkg}"
archivedir="${pkgdir}/src"
buildsrcdir="${pkgdir}/buildsrc"
installdir="${pkgdir}/inst"
runtimedir="${pkgdir}/out"
patchdir="${pkgdir}/patches"
workdir="${pkgdir}/workdir-$$${RANDOM}${RANDOM}${RANDOM}${RANDOM}.work"

_download="$(which download)"

function clean() {
	rm -rf "${installdir}" "${runtimedir}"
}
................................................................................
		) || return 1
	fi

	return 0
}

function apply_patches() {
	local patch

	for patch in "${patchdir}/all"/${pkg}-${version}-*.diff "${patchdir}/${TCL_VERSION}"/${pkg}-${version}-*.diff; do
		if [ ! -f "${patch}" ]; then
			continue
		fi

		echo "Applying: ${patch}"
		( cd "${workdir}" && ${PATCH:-patch} -p1 ) < "${patch}" || return 1
	done

	return 0
}

function preconfigure() {
	:
}

function configure() {