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