#! /bin/sh

# Make sure errors report (since we try to weed out potential spurious ones)
set -e

# Create links for ncurses3.0 compatability.
if [ ! -e /usr/lib/terminfo ]; then
  ln -sf ../share/terminfo /usr/lib/terminfo
fi
if [ ! -e /usr/lib/tabset ]; then
  ln -sf ../share/tabset /usr/lib/tabset
fi

# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/ncurses-base -a -d /usr/share/doc/ncurses-base ]; then
		ln -sf ../share/doc/ncurses-base /usr/doc/ncurses-base
	fi
fi
# End automatically added section

