File: postinst

package info (click to toggle)
wmmail 0.64-13
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,088 kB
  • ctags: 187
  • sloc: sh: 2,807; ansic: 2,646; makefile: 121; perl: 111
file content (20 lines) | stat: -rw-r--r-- 678 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
#! /bin/sh -e

if [ "$1" = "upgrade" ]; then
    # Check for old image and sound dirs, and remove if found
    if [ ! -L /usr/lib/GNUstep/Apps/WMMail.app/Anims ]; then
	rm -rf /usr/lib/GNUstep/Apps/WMMail.app/Anims
    fi
    if [ ! -L /usr/lib/GNUstep/Apps/WMMail.app/Sounds ]; then
	rm -rf /usr/lib/GNUstep/Apps/WMMail.app/Sounds
    fi
fi

# Now create symlinks for images and sounds.
# (all this to cope with a possibly overzealous interpretation of the FHS)
ln -sf ../../../../share/GNUstep/Apps/WMMail.app/Anims \
    /usr/lib/GNUstep/Apps/WMMail.app/Anims
ln -sf ../../../../share/GNUstep/Apps/WMMail.app/Sounds \
    /usr/lib/GNUstep/Apps/WMMail.app/Sounds

#DEBHELPER#