#!/bin/sh

set -e

CFG_FILE=/etc/w3c/checklink.conf

case "$1" in
    purge)

    if command -v ucf >/dev/null 2>&1; then
        ucf --purge $CFG_FILE
    fi

    rm -f $CFG_FILE

    for ext in .bak .tmp .dpkg-tmp .dkpg-new .dpkg-old .ucf-new .ucf-old .ucf-dist
    do
       rm -f $CFG_FILE$ext
    done

    ;;

    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
