#! /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

# xterm-color no longer exists in ncurses-base, nuke the symlink.
if [ -L /usr/share/terminfo/x/xterm-color ]; then
  rm -f /usr/share/terminfo/x/xterm-color
fi

