# Exit on error:
set -e

wget http://prdownloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz
tar xf tcl8.6.6-src.tar.gz
cd tcl8.6.6/unix

./configure \
    --prefix= \
    --with-encoding=utf-8

make install
cd ../..

# Keep the source to install tk:
#rm -rf tcl8.6.6

rm tcl8.6.6-src.tar.gz

exit 0
