Overview
| Comment: | Consolidated patch application process Added patches for tclreadline | 
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive | 
| Timelines: | family | ancestors | descendants | both | trunk | 
| Files: | files | file ages | folders | 
| SHA1: | 
9c59c70725306b12380ba679be58b25b | 
| User & Date: | rkeene on 2011-07-06 10:32:12 | 
| Other Links: | manifest | tags | 
Context
| 
   2011-07-06 
 | ||
| 11:21 | Updated to include patches in src tree check-in: c578308a85 user: rkeene tags: trunk | |
| 10:32 | Consolidated patch application process Added patches for tclreadline check-in: 9c59c70725 user: rkeene tags: trunk | |
| 09:45 | Updated to include common.sh in src tarballs check-in: 05f4343e50 user: rkeene tags: trunk | |
Changes
Modified server/buildpkgs/common.sh from [0a6dc891a3] to [5c88931dca].
| ︙ | |||
54 55 56 57 58 59 60 61 62 63 64 65 66  | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111  | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +  | 
function download_src () {
	if [ ! -f "${SRC}" -a -n "${SRC}" -a -n "${SRCURL}" ]; then
		mkdir -p "$(dirname "${SRC}")" >/dev/null 2>/dev/null
		download "${SRC}" "${SRCURL}" || exit 1
	fi
}
function extract_src () {
	rm -rf build
	mkdir build
	(
		cd build/ || exit 1
		gzip -dc "../${SRC}" | tar -xf -
		cd "${BUILDDIR}" || exit 1
	) || exit 1
}
function apply_patches () {
	local patchroot patchdir patchfiles patchfile idx
	patchroot="$(pwd)/patches"
	for patchdir in "${patchroot}/all" "${patchroot}/${VERS}"; do
		unset patchfiles
		if [ -f "${patchdir}/series" ]; then
			idx=0
			for patchfile in $(cat "${patchdir}/series"); do
				patchfiles[${idx}]="${patchdir}/${patchfile}"
				idx=$[${idx} + 1]
			done
		else
			patchfiles=("${patchdir}"/*.diff)
		fi
		for patchfile in "${patchfiles[@]}"; do
			if [ ! -f "${patchfile}" ]; then
				continue
			fi
			(
				cd "build/${BUILDDIR}" || exit 1
				echo "* Applying patch \"${patchfile}\""
				"${PATCH:-patch}" -p1 < "${patchfile}"
			)
		done
	done
}
WORKDIR="${TMPDIR:-/tmp}/tcl-buildpkgs-$$${RANDOM}${RANDOM}${RANDOM}"
PLATDIR="$(pwd)/out/${PLATFORM}"
export WORKDIR PLATDIR
setup_tcl84
 | 
Modified server/buildpkgs/tclreadline/build.sh from [dd5656fd18] to [82c95eff2e].
| ︙ | |||
11 12 13 14 15 16 17 18 19 20  | 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  | + + + + + + - - - - - - - + - - -  | source ../common.sh # Do not build if the "tcl" platform has been requested not_platforms 'tcl' # Download source download_src # Extract source extract_src # Apply appropriate patches apply_patches # Build package (  | 
| ︙ | 
Added server/buildpkgs/tclreadline/patches/2.1.0/autoreconf.diff version [8fd0124d8a].
more than 10,000 changes
Added server/buildpkgs/tclreadline/patches/2.1.0/complete_nontcl.diff version [0647275ef3].
  | 
Added server/buildpkgs/tclreadline/patches/2.1.0/completion_matches.diff version [07a20f0688].
  | 
Added server/buildpkgs/tclreadline/patches/2.1.0/completion_pbug.diff version [70bbea0580].
  | 
Added server/buildpkgs/tclreadline/patches/2.1.0/memuse.diff version [038b5af4c2].
  | 
Added server/buildpkgs/tclreadline/patches/2.1.0/varnames.diff version [5b03b6e0ff].