#!/bin/sh -e

# Automatically added by dh_installdocs
if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/xchat -a -d /usr/share/doc/xchat ]; then	  ln -sf ../share/doc/xchat /usr/doc/xchat
	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
if [ -d /usr/share/doc/xchat -a ! -L /usr/share/doc/xchat ]; then
  rm -rf /usr/share/doc/xchat
  ln -sf xchat-common /usr/share/doc/xchat
fi
