#! /bin/sh # Automatically added by dh_installdeb/13.24.1 dpkg-maintscript-helper rm_conffile /etc/angband/pref/graf-mac.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/graf-win.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/graf-sdl.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/graf-gtk.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/graf-x11.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/pref-x11.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/pref-win.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/pref-gcu.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/pref-sdl.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/pref-mac.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/pref-acn.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/user-mac.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/font-gtk.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/pref/font-mac.prf 1:4.2.5\+dfsg-1\~ angband -- "$@" dpkg-maintscript-helper rm_conffile /etc/angband/edit/shop-own.txt 1:4.2.5\+dfsg-1\~ angband -- "$@" # End automatically added section set -e case "$1" in install) : if [ -L /var/games/angband/data ]; then rm /var/games/angband/data fi if [ -d /usr/lib/angband/data ]; then rm -rf /usr/lib/angband/data fi # There are two sub-cases: if test "${2+set}" = set; then # The configuration files from version $2 of this package are # still on the system. # Recover old save and scores files if [ -d /var/lib/games/angband ]; then for dir in apex bone save user; do if [ -d /var/lib/games/angband/$dir ]; then test -d /var/games/angband/$dir || mkdir -p /var/games/angband/$dir if ls /var/games/angband/$dir | grep . >/dev/null ; then for file in /var/lib/games/angband/$dir/*; do basefile=$(basename $file) if [ "X$basefile" = "Xdelete.me" ]; then continue; fi test -e "/var/games/angband/$dir/$basefile" || \ cp -f "/var/lib/games/angband/$dir/$basefile" \ "/var/games/angband/$dir/$basefile" done fi fi done fi fi ;; upgrade) # About to upgrade this package from version $2 TO THIS VERSION. # "prerm upgrade" has already been called for the old version of # this package. : if [ -L /var/games/angband/data ]; then rm /var/games/angband/data fi if [ -d /usr/lib/angband/data ]; then rm -rf /usr/lib/angband/data fi # Recover old save and scores files if [ -d /var/lib/games/angband ]; then for dir in apex bone save user; do if [ -d /var/lib/games/angband/$dir ]; then test -d /var/games/angband/$dir || mkdir -p /var/games/angband/$dir for file in /var/lib/games/angband/$dir/*; do if [ -n "$file" ] && [ -e "$file" ]; then basefile=$(basename $file) if [ "X$basefile" = "Xdelete.me" ]; then continue; fi test -e /var/games/angband/$dir/"$basefile" || \ cp -f /var/lib/games/angband/$dir/"$basefile" \ /var/games/angband/$dir/"$basefile" fi done fi done fi ;; *) ;; esac