preinst is in dictionaryreader.app 0+20080616+dfsg-2build7.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh
# Avoid the lintian warning image-file-in-usr-lib.
# Based on gnumail's script written by Hubert Chathi <uhoreg@debian.org>.
# FIXME: Remove during the squeeze+1 cycle.
set -e
set -u
RESDIR=/usr/lib/GNUstep/Applications/DictionaryReader.app/Resources
case "$1" in
install | upgrade)
if [ -d $RESDIR ] && [ ! -L $RESDIR ]; then
rm -rf $RESDIR
fi
;;
esac
exit 0
|