-
Notifications
You must be signed in to change notification settings - Fork 0
/
tclbuild64.sh
73 lines (50 loc) · 1.85 KB
/
tclbuild64.sh
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
#############################
# Compile 64 bit tcl and tk
#############################
unzip="/c/Rtools/bin/unzip"
tclbuild="/c/Tclbuild/Tcl64"
bindir="${tclbuild}/bin64"
libdir="${tclbuild}/lib64"
final_builds="/c/Tclbuild/final_builds"
mkdir build64
$unzip tcl864-src.zip -d build64
$unzip tk864-src.zip -d build64
export PATH=/usr/local/bin:/c/Rtools/mingw_64/bin/:/bin/
## tcl
cd /c/Tclbuild/build64/tcl8.6.4/win
./configure --prefix=$tclbuild --enable-64bit --enable-threads --bindir=$bindir --libdir=$libdir
make
make test > test64_tcl.log
make install
## tk
cd /c/Tclbuild/build64/tk8.6.4/win
./configure --prefix=$tclbuild --with-tcl=$libdir --enable-64bit --enable-threads --bindir=$bindir --libdir=$libdir
make
make install
# necessary to run tests
export PATH=$PATH:$bindir
make test > test64_tk.log
export PATH=/usr/local/bin:/c/Rtools/mingw_64/bin/:/bin/
## bwidget
cd /c/Tclbuild
bwlib="${tclbuild}/lib"
$unzip bwidget-1.9.9.zip -d $bwlib
mv "${bwlib}/bwidget-1.9.9" "${bwlib}/BWidget"
## tktable
tar -zxvf tktable-tktable.tar.gz --directory build64
cd /c/Tclbuild/build64/tktable
./configure --prefix=$libdir --with-tcl=$libdir --with-tk=$libdir --enable-64bit --libdir=$libdir
make
make test > test64_tktable.log
make install
## copy logs
cp /c/Tclbuild/build64/tcl8.6.4/win/test64_tcl.log $final_builds
cp /c/Tclbuild/build64/tcl8.6.4/win/config.log "${final_builds}/config64_tcl.log"
cp /c/Tclbuild/build64/tk8.6.4/win/test64_tk.log $final_builds
cp /c/Tclbuild/build64/tk8.6.4/win/config.log "${final_builds}/config64_tk.log"
cp /c/Tclbuild/build64/tktable/test64_tktable.log $final_builds
cp /c/Tclbuild/build64/tktable/config.log "${final_builds}/config64_tktable.log"
cd /c/Tclbuild
rm -rf Tcl64/man Tcl64/share Tcl64/bin Tcl64/lib/*.a Tcl64/lib64/*.a Tcl64/lib/*/*.a Tcl64/lib64/*/*.a
/c/Rtools/bin/zip -r "${final_builds}/Tcl64.zip" Tcl64