preinst is in gri-html-doc 2.12.23-9build2.
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 | #!/bin/bash
set -e
### Historic cleanup code, delete files like:
# /usr/share/doc/gri-html-doc/html/.dhelp
if [ -f "/usr/share/doc/gri-html-doc/html/.dhelp" ]; then
rm -f /usr/share/doc/gri-html-doc/html/.dhelp
rmdir --ignore-fail-on-non-empty --parents /usr/share/doc/gri-html-doc/html
fi
### Delete unedited potato /etc/emacs file because it wasn't a conffile
if [ x$1 = xupgrade ]
then
if [ `md5sum < /etc/emacs/site-start.d/50gri-html-doc.el | cut -f1 "-d "` = 4b1366ce9d1e5de4670aba73f37b212a ]
then
mv /etc/emacs/site-start.d/50gri-html-doc.el /etc/emacs/site-start.d/50gri-html-doc.el.dpkg-old
fi
fi
|