#!/bin/sh
set -e

RES_DIR=/usr/share/games/rocksndiamonds
RW_DIR=/var/games/rocksndiamonds

#DEBHELPER#

if test  "$1" = "remove"; then
  for PART in graphics levels music sounds; do
    rm -fr $RES_DIR/$PART
  done
fi

if test  "$1" = "purge"; then
  rm -fr $RES_DIR $RW_DIR
fi

exit 0


