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
|
exit 0
fi
rm -rf '__tmp__'
mkdir '__tmp__'
mkdir '__tmp__/include'
mkdir '__tmp__/lib'
mkdir '__tmp__/doc'
cp 'tcl/inst/lib/tclConfig.sh' '__tmp__/lib/'
cp -rp 'tcl/inst/include'/* '__tmp__/include/'
cp 'tcl/inst/lib'/libtclstub* '__tmp__/lib/'
if [ -f 'tk/inst/lib/tkConfig.sh' ]; then
cp 'tk/inst/lib/tkConfig.sh' '__tmp__/lib/'
cp -rp 'tk/inst/include'/* '__tmp__/include/'
cp 'tk/inst/lib'/libtkstub* '__tmp__/lib/'
fi
cp 'kitsh/build'/kitsh-*/libtclkit* '__tmp__/lib/'
for dir in */; do
if [ ! -d "${dir}/build" ]; then
continue
fi
project="$(basename "${dir}")"
|
>
>
>
>
|
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
|
exit 0
fi
rm -rf '__tmp__'
mkdir '__tmp__'
mkdir '__tmp__/include'
mkdir '__tmp__/lib'
mkdir '__tmp__/bin'
mkdir '__tmp__/doc'
cp 'tcl/inst/lib/tclConfig.sh' '__tmp__/lib/'
cp -rp 'tcl/inst/include'/* '__tmp__/include/'
cp 'tcl/inst/lib'/libtclstub* '__tmp__/lib/'
if [ -f 'tk/inst/lib/tkConfig.sh' ]; then
cp 'tk/inst/lib/tkConfig.sh' '__tmp__/lib/'
cp -rp 'tk/inst/include'/* '__tmp__/include/'
cp 'tk/inst/lib'/libtkstub* '__tmp__/lib/'
fi
cp 'kitsh/build'/kitsh-*/libtclkit* '__tmp__/lib/'
cp 'kitsh/build'/kitsh-*/tclsh '__tmp__/bin/' >/dev/null 2>/dev/null
cp 'kitsh/build'/kitsh-*/tclsh.exe '__tmp__/bin/' >/dev/null 2>/dev/null
rmdir '__tmp__/bin' >/dev/null 2>/dev/null
for dir in */; do
if [ ! -d "${dir}/build" ]; then
continue
fi
project="$(basename "${dir}")"
|
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
)
(
cd '__tmp__' || exit 1
mkdir "libtclkit-sdk-${TCLVERS}"
mv 'lib' 'include' 'doc' "libtclkit-sdk-${TCLVERS}/"
if [ -e 'Android.mk' ]; then
mv 'Android.mk' "libtclkit-sdk-${TCLVERS}/"
fi
tar -cf - "libtclkit-sdk-${TCLVERS}" | gzip -9c > "../libtclkit-sdk-${TCLVERS}.tar.gz"
)
rm -rf '__tmp__'
exit 0
|
|
|
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
)
(
cd '__tmp__' || exit 1
mkdir "libtclkit-sdk-${TCLVERS}"
mv 'bin' 'lib' 'include' 'doc' "libtclkit-sdk-${TCLVERS}/"
if [ -e 'Android.mk' ]; then
mv 'Android.mk' "libtclkit-sdk-${TCLVERS}/"
fi
tar -cf - "libtclkit-sdk-${TCLVERS}" | gzip -9c > "../libtclkit-sdk-${TCLVERS}.tar.gz"
)
rm -rf '__tmp__'
exit 0
|