postinst is in ocaml-nox 4.01.0-3ubuntu3.
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 | #!/bin/sh
set -e
if [ "$1" = "configure" ]; then
ln -sf /usr/lib/ocaml/caml /usr/include/
# Save Emacs conffiles from previous ocaml versions
for f in ocaml ocaml-nox ; do
file="/etc/emacs/site-start.d/50$f.el"
if [ -e "$file" ]; then
mv "$file" "$file.save"
fi
done
fi
|