-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path2-tcl.sh
executable file
·52 lines (40 loc) · 1.18 KB
/
2-tcl.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
#!/bin/bash
export STAGE=2
. ./environment.sh
. ./package-versions.sh
export FORCE_UNSAFE_CONFIGURE=1
if [ -f $PROGRESS_DIR/2-tcl ] ; then
exit 0
fi
echo "building tcl..."
set -e
tar xf tcl${tcl_v}-src.tar.gz
cd tcl${tcl_v}
tar xf ../tcl${tcl_v}-html.tar.gz --strip-components=1
SRCDIR=$(pwd)
cd unix
./configure \
--prefix=/usr \
--mandir=/usr/share/man
make
sed -e "s|$SRCDIR/unix|/usr/lib|" \
-e "s|$SRCDIR|/usr/include|" \
-i tclConfig.sh
sed -e "s|$SRCDIR/unix/pkgs/tdbc1.1.5|/usr/lib/tdbc1.1.5|" \
-e "s|$SRCDIR/pkgs/tdbc1.1.5/generic|/usr/include|" \
-e "s|$SRCDIR/pkgs/tdbc1.1.5/library|/usr/lib/tcl8.6|" \
-e "s|$SRCDIR/pkgs/tdbc1.1.5|/usr/include|" \
-i pkgs/tdbc1.1.5/tdbcConfig.sh
sed -e "s|$SRCDIR/unix/pkgs/itcl4.2.3|/usr/lib/itcl4.2.3|" \
-e "s|$SRCDIR/pkgs/itcl4.2.3/generic|/usr/include|" \
-e "s|$SRCDIR/pkgs/itcl4.2.3|/usr/include|" \
-i pkgs/itcl4.2.3/itclConfig.sh
unset SRCDIR
make install
chmod u+w /usr/lib/libtcl${tcl_mm_v}.so
make install-private-headers
ln -sf tclsh${tcl_mm_v} /usr/bin/tclsh
mv /usr/share/man/man3/{Thread,Tcl_Thread}.3
cd ..
rm -rf tcl${tcl_v}
touch $PROGRESS_DIR/2-tcl