postinst is in wl 2.14.0-12.
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 22 23 | #!/bin/sh
set -e
if [ X"$1" = Xconfigure ]; then
if [ -n "$2" ] && [ X"$2" != X"<unknown>" ]; then
dpkg --compare-versions "$2" lt "2.7.4.20011005cvs" && \
(
for d in `find /usr/share/emacs/ -name "21.*"` `echo /usr/lib/xemacs-*`; do
if [ -d $d/etc/wl ]; then
rm -rf $d/etc/wl
rmdir --ignore-fail-on-non-empty -p $d/etc
fi
done
)
fi
fi
# Automatically added by dh_installemacsen
if [ "$1" = "configure" ] && [ -x /usr/lib/emacsen-common/emacs-package-install ]
then
/usr/lib/emacsen-common/emacs-package-install wl
fi
# End automatically added section
|