File: postrm

package info (click to toggle)
gnomehack 1.0.5-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 10,256 kB
  • ctags: 12,966
  • sloc: ansic: 119,783; yacc: 2,002; sh: 610; lex: 417; makefile: 397
file content (28 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

# Nethack post-remove script for Debian
#
# Ben Gertzfield (che@debian.org) 29 July 1997
# Copyright 1997 Ben Gertzfield. This script is released under the
# GNU General Public License, version 2 or later.

# Updated 18 August 1998 to rm -rf the score/save directory on a purge,
# added debhelper comments

set -e

#if [ -x /usr/X11R6/bin/mkfontdir ] ; then /usr/X11R6/bin/mkfontdir \
#  /usr/X11R6/lib/X11/fonts/misc ; fi

if [ "$1" = "purge" ]; then
    echo -n "Purging high-scores and save-files for GnomeHack... "
    rm -rf /var/lib/games/gnomehack/
    echo "done."
fi

# if [ -x /usr/sbin/suidunregister ];then
#     suidunregister -s gnomehack /usr/lib/games/gnomehack/gnomehack
# fi
      

#DEBHELPER#