Diff

Differences From Artifact [af2d67d68b]:

To Artifact [50ab5da7e8]:


1
2
3
4
5
6
7

8
9
10




11
12
13
14
15
16
17
..
28
29
30
31
32
33
34



35
36
37
38
39
40
41
..
66
67
68
69
70
71
72


73
74
75

76




77


78
79


















#! /bin/bash

platform="$1"
shift

if [ -z "${platform}" ]; then
	echo "Platforms:"

fi

for dir in work/libtclkit-*/ __fail__; do




	if [ "${dir}" == '__fail__' ]; then
		if [ -z "${platform}" ]; then
			exit 0
		fi

		echo "No such platform: ${platform}" >&2

................................................................................
			break
		fi
	fi
done
dir="$(pwd)/${dir}"

case "${platform}" in



	linux-i386)
		platform="x86_64-redhat5-linux 32"
		;;
	linux-mipsel)
		platform="mipsel-unknown-linux-uclibc"
		;;
	solaris-amd64)
................................................................................
		;;
esac

TCLKIT_SDK_DIR="${dir}"
export TCLKIT_SDK_DIR

make distclean


eval `~/root/cross-compilers/setup-cc $platform`

platform="$(echo "${platform}" | cut -f1 -d ' ')"






./configure --host="${platform}" --libdir="$(pwd)/INST" --with-tcl="${dir}/lib" "$@"


make 
make install

























>



>
>
>
>







 







>
>
>







 







>
>
|

|
>

>
>
>
>
|
>
>
|

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
..
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
..
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
112
113
114
#! /bin/bash

platform="$1"
shift

if [ -z "${platform}" ]; then
	echo "Platforms:"
	echo "  native"
fi

for dir in work/libtclkit-*/ __fail__; do
	if [ "${platform}" = 'native' ]; then
		break
	fi

	if [ "${dir}" == '__fail__' ]; then
		if [ -z "${platform}" ]; then
			exit 0
		fi

		echo "No such platform: ${platform}" >&2

................................................................................
			break
		fi
	fi
done
dir="$(pwd)/${dir}"

case "${platform}" in
	native)
		platform=''
		;;
	linux-i386)
		platform="x86_64-redhat5-linux 32"
		;;
	linux-mipsel)
		platform="mipsel-unknown-linux-uclibc"
		;;
	solaris-amd64)
................................................................................
		;;
esac

TCLKIT_SDK_DIR="${dir}"
export TCLKIT_SDK_DIR

make distclean

if [ "${platform}" != '' ]; then
	eval `~/root/cross-compilers/setup-cc $platform`

	platform="$(echo "${platform}" | cut -f1 -d ' ')"
fi

rm -rf INST
if [ "${platform}" = '' ]; then
	./configure --libdir="$(pwd)/INST" "$@" || exit 1
else
	./configure --host="${platform}" --libdir="$(pwd)/INST" --with-tcl="${dir}/lib" "$@" || exit 1
fi

make  || exit 1
make install

case "${platform}" in
	i586-mingw32msvc)
		make TCLSH="wine ${dir}/lib/tclsh.exe" test
		;;
	x86_64-w64-mingw32)
		WINEPREFIX="${HOME}/.wine64"
		export WINEPREFIX

		make TCLSH="wine64 ${dir}/lib/tclsh.exe" test
		;;
	x86_64-redhat5-linux)
		make TCLSH="${dir}/lib/tclsh" test
		;;
	'')
		make test
		;;
esac