#!/bin/sh
# postrm script for highlight
#
# see: dh_installdeb(1)
set -e


CONFDIR=/etc/highlight
if [ -d $CONFDIR ] 
then
#DEBHELPER#
	FILES="`ls $CONFDIR |xargs`"
	case "$1" in
    		purge|remove)
		 	for f in $FILES
			 do
			 	file=$CONFDIR/$f
	 			if [ -f $file ]
				then
					rm -f $file
				fi

			 done
			 rm -rf $CONFDIR
    			;;
	esac
fi

exit 0


