Diff

Differences From Artifact [fcb2d0c6dc]:

To Artifact [bee88e3dbf]:


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fi
if [ "$1" = "distclean" ]; then
	mode="distclean"
fi

failedpkgs=""
buildfailed="0"
for pkg in tcl tk itcl mk4tcl tclvfs memchan 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"







|







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fi
if [ "$1" = "distclean" ]; then
	mode="distclean"
fi

failedpkgs=""
buildfailed="0"
for pkg in tcl tk itcl mk4tcl tclvfs 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"
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52






53
54
55
56
57
58
59
60
61
62
63
64
	fi

	case "${pkg}" in
		tcl)
			TCLCONFIGDIR=$(find "$(pwd)/tcl/build" -name tclConfig.sh | head -1 | sed 's@/[^/]*$@@')
			export TCLCONFIGDIR
			;;
		memchan)
			failed="0"
			;;
	esac

	if [ "${failed}" = "1" ]; then
		buildfailed="1"
	fi
done







if [ -n "${failedpkgs}" ]; then
	echo "Failed to build:${failedpkgs}"
fi

if [ "${buildfailed}" != "0" ]; then
	echo 'WARNING: Build is likely incomplete or failed.' >&2
fi

cp 'kitsh/build'/kitsh-*/kit "tclkit-${TCLVERS}"

exit "${buildfailed}"







<
<
<






>
>
>
>
>
>












37
38
39
40
41
42
43



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
	fi

	case "${pkg}" in
		tcl)
			TCLCONFIGDIR=$(find "$(pwd)/tcl/build" -name tclConfig.sh | head -1 | sed 's@/[^/]*$@@')
			export TCLCONFIGDIR
			;;



	esac

	if [ "${failed}" = "1" ]; then
		buildfailed="1"
	fi
done

if [ "${mode}" = "clean" -o "${mode}" = "distclean" ]; then
	rm -f tclkit-*

	exit 0
fi

if [ -n "${failedpkgs}" ]; then
	echo "Failed to build:${failedpkgs}"
fi

if [ "${buildfailed}" != "0" ]; then
	echo 'WARNING: Build is likely incomplete or failed.' >&2
fi

cp 'kitsh/build'/kitsh-*/kit "tclkit-${TCLVERS}"

exit "${buildfailed}"