postinst is in erlang-manpages 1:20.2.2+dfsg-1ubuntu2.
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 | #! /bin/sh
# postinst script for erlang-manpages
#
# see: dh_installdeb(1)
set -e
if [ "$1" = configure ] && dpkg --compare-versions "$2" lt-nl "1:12.b.1" ; then
for name in dialyzer \
epmd \
erl \
erl_call \
erlc \
escript \
run_erl \
start ; do
dpkg-divert --package erlang-manpages --remove --rename \
--divert /usr/share/man/man1/$name.erlang.1.gz \
/usr/share/man/man1/$name.1.gz >/dev/null
done
fi
|