preinst is in ipe 7.1.10-1.1.
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 | #!/bin/sh
set -e
# Prior to version X, $docdir was a directory; now it is a symlink
docdir=/usr/share/doc/ipe/doc
if [ "$1" = "upgrade" ]; then
if [ -d $docdir ]; then rm -rf $docdir; fi
fi
|