#! /bin/sh

set -e

# remove defoma directory.

if [ "$1" = remove ]; then
  rm -fr /var/lib/defoma/gs.d
fi

# remove defoma-related files.

RULE='/etc/defoma/ghostscript.subst-rule'

if [ "$1" = purge ]; then
  rm -f $RULE $RULE~
  rm -f $CONF $CONF~
fi


