#!/bin/bash set -e # With simpleBuildEnvironment flag, we're already in build directory # which contains the built source tree build_dir=$1 install_dir=$2 install_type=$3 # Change to unix subdirectory for installation cd sources/unix # Install the package make install DESTDIR=${install_dir} # Make the installed library writable so debugging symbols can be removed later # Find the actual library location (lib or lib64) LIB_PATH=$(find ${install_dir}${PREFIX} -name "libtcl8.6.so" -type f | head -1) chmod -v u+w ${LIB_PATH} # Install TCL's headers (required by next package, Expect) make install-private-headers DESTDIR=${install_dir} # Create necessary symbolic link mkdir -p ${install_dir}${BINDIR} ln -sfv ${install_dir}${BINDIR}/tclsh8.6 ${install_dir}${BINDIR}/tclsh8.6 ln -sfv tclsh8.6 ${install_dir}${BINDIR}/tclsh # Rename a man page that conflicts with a Perl man page mv ${install_dir}${PREFIX}/share/man/man3/{Thread,Tcl_Thread}.3 echo "TCL 8.6.16 installation completed successfully."