File: preinst

package info (click to toggle)
poe.app 0.5.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 564 kB
  • sloc: objc: 1,272; ansic: 438; makefile: 54; sh: 17
file content (28 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (2)
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
# dpkg will not replace a real directory with a symlink.
# FIXME: Remove during the squeeze+1 cycle.

set -e
set -u

RESDIR=/usr/lib/GNUstep/Applications/Poe.app/Resources

case "$1" in
    install | upgrade)
	if [ -d $RESDIR ] && [ ! -L $RESDIR ]; then
	    rm -rf $RESDIR
	fi
    ;;
    
    abort-upgrade)
    ;;

    *)
	echo "preinst called with unknown argument \`$1'" >&2
	exit 1
    ;;
esac

#DEBHELPER#

exit 0