debian/ltris.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | case "$1" in |
| 6 | configure) |
| 7 | if test -f /var/games/ltris.hscr |
| 8 | then |
| 9 | if md5sum /var/games/ltris.hscr | grep -q c8dcd85ee3c97c11f02f3ca114a99007 |
| 10 | then |
| 11 | # deleting pristine score table |
| 12 | rm -f /var/games/ltris.hscr |
| 13 | fi |
| 14 | fi |
| 15 | ;; |
| 16 | |
| 17 | abort-upgrade|abort-remove|abort-deconfigure) |
| 18 | ;; |
| 19 | |
| 20 | *) |
| 21 | echo "postinst called with unknown argument \`$1'" >&2 |
| 22 | exit 1 |
| 23 | ;; |
| 24 | esac |
| 25 | |
| 26 | #DEBHELPER# |