#!/bin/sh set -e #DEBHELPER# if [ "$1" = configure ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt "4.0.2+ds-2~"; then # remove the very old (pre 3.0) system scores file: # - not used when playing with version 3, as that version saves the scores # in the users home directory # - not supported anymore anyway in version 4: # https://github.com/libsdl-org/Maelstrom/issues/67 if [ -e ${DPKG_ROOT:-}/var/games/Maelstrom-Scores ]; then rm ${DPKG_ROOT:-}/var/games/Maelstrom-Scores rmdir --ignore-fail-on-non-empty ${DPKG_ROOT:-}/var/games/ fi fi