#!/bin/sh
# postinst script for tworld
# copyright 2006-2011 by Rhonda D'Vine <rhonda@debian.org>
# Licenced under WTFPLv2

set -e

if [ "$1" != configure ]; then
	exit 0
fi

if dpkg --compare-versions "$2" lt-nl "1.3.0-5"; then
	if [ -d /usr/share/doc/tworld ]; then
		if rmdir /usr/share/doc/tworld 2>/dev/null; then
			ln -s tworld-data /usr/share/doc/tworld
		fi
	fi
fi

#DEBHELPER#
