1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
+
+
-
+
|
TCLKIT = tclkit
all: teapot-client.kit
teapot-client.kit: teapot-client.tcl lib/teapotclient0.1/pkgIndex.tcl lib/teapotclient0.1/teapotclient.tcl
rm -rf teapot-client-tmp.vfs
mkdir teapot-client-tmp.vfs
cp -r lib teapot-client.tcl teapot-client-tmp.vfs/
echo 'package require starkit' > teapot-client-tmp.vfs/main.tcl
echo 'starkit::startup' >> teapot-client-tmp.vfs/main.tcl
echo 'source $$starkit::topdir/teapot-client.tcl' >> teapot-client-tmp.vfs/main.tcl
./teapot-client.tcl get teapot-client-tmp.vfs/ tcl tcl md5 fileutil
$$(../../starkit2exe/support/find-tclkit) ../../starkit2exe/support/sdx.kit wrap teapot-client-tmp.kit
$(TCLKIT) support/sdx.kit wrap teapot-client-tmp.kit
rm -rf teapot-client-tmp.vfs
mv teapot-client-tmp.kit teapot-client.kit
clean:
rm -f teapot-client.kit
rm -rf teapot-client-tmp.vfs
|