Check-in [a8386e13ed]
Overview
Comment:Added support for specifying a list of optional packages
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a8386e13edf2a4f6d39bd5da8f5188fb43fc78b7
User & Date: rkeene on 2010-09-26 04:41:36
Other Links: manifest | tags
Context
2010-09-26
04:41
Fixed issue with kitcreator including excluded packages after building with them and then building without them

Fixed issue with Tcl pure-Tcl Metakit and Tcl 8.4 check-in: 32589cdef2 user: rkeene tags: trunk

04:41
Added support for specifying a list of optional packages check-in: a8386e13ed user: rkeene tags: trunk
04:41
Clarified licensing terms

Updated "clean"/"distclean" options to clean optional packages check-in: e251d16623 user: rkeene tags: trunk

Changes

Modified README from [f879dbf338] to [92c264cba0].

72
73
74
75
76
77
78







79
80
81
82
83
84
85
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92







+
+
+
+
+
+
+







		Specify this as "1" to statically link to Tk.  The default
		action on most platforms is to dynamically link to Tk.

	5. STRIP
		Specifies the tool you wish to be called to strip object files,
		archives, and shared objects.  The default is "strip".  You
		should probably set this if you are cross-compiling.

	6. KITCREATOR_PKGS
		Specify which non-required packages to build.  The default list
		is:
			tk itcl mk4tcl
		If mk4tcl is not present a pure-Tcl implementation will be used
		instead.


-------------------
Method of Operation
-------------------
Summary:
	1. "kitcreator" calls */build.sh

Modified kitcreator from [2e7fd89fb9] to [fd4b02e79e].

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
37
38

39
40
41
42
43
44
45
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

37
38
39
40
41

42
43
44
45
46
47
48
49









+
+
+
+
+















-
+





-

-
+




-
+







#! /bin/bash

TCLVERS="8.4.19"
if echo "$1" | grep '^[0-9][0-9]*\.' >/dev/null || echo "$1" | grep '^cvs_' >/dev/null; then
	TCLVERS="$1"

	shift
fi
export TCLVERS

# Add packages implied by the additional arguments
if [ -z "${KITCREATOR_PKGS}" ]; then
	KITCREATOR_PKGS="tk itcl mk4tcl"
fi

mode="build"
if [ "$1" = "clean" ]; then
	shift

	mode="clean"
fi
if [ "$1" = "distclean" ]; then
	shift

	mode="distclean"
fi

if [ "${mode}" = "clean" -o "${mode}" = "distclean" ]; then
	# List all additional packages here so that they get cleaned up
	ADDPKGS="${ADDPKGS} thread"
	KITCREATOR_PKGS="${KITCREATOR_PKGS} thread"
fi

CONFIGUREEXTRA="$@"
export CONFIGUREEXTRA

# Add packages implied by the additional arguments
if echo " ${CONFIGUREEXTRA} " | grep ' --enable-threads' >/dev/null 2>/dev/null; then
	ADDPKGS="${ADDPKGS} thread"
	KITCREATOR_PKGS="${KITCREATOR_PKGS} thread"
fi

failedpkgs=""
buildfailed="0"
for pkg in tcl tk itcl mk4tcl tclvfs zlib ${ADDPKGS} kitsh; do
for pkg in tcl tclvfs zlib ${KITCREATOR_PKGS} kitsh; do
	if [ "${mode}" = "distclean" ]; then
		rm -rf "${pkg}/src"
	fi

	if [ "${mode}" = "clean" -o "${mode}" = "distclean" ]; then
		rm -f "${pkg}/build.log"
		rm -rf "${pkg}/out" "${pkg}/inst" "${pkg}/build"