preinst is in emacsen-common 2.0.7.
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 | #!/bin/sh
set -e
# The emacsen-common package is a special case; we can't call
# emacs-package-install from here since the new version hasn't been
# unpacked yet, so just do the important bit that it would have done.
installed_state_dir=/var/lib/emacsen-common/state/package/installed
if test -d "$installed_state_dir"
then
rm -f "$installed_state_dir"/emacsen-common
fi
|