#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
	update-alternatives --install /usr/bin/tclsh tclsh /usr/bin/tclsh8.3 831 \
		--slave /usr/share/man/man1/tclsh.1.gz tclsh.1 \
	    	/usr/share/man/man1/tclsh8.3.1.gz
	
	ldconfig
fi

# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/tcl8.3 -a -d /usr/share/doc/tcl8.3 ]; then
		ln -sf ../share/doc/tcl8.3 /usr/doc/tcl8.3
	fi
fi
# End automatically added section
# Automatically added by dh_installmenu
if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
# End automatically added section

