postinst is in gnumeric-common 1.10.17-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 | #! /bin/sh
set -e
for s in gnumeric-dialogs.schemas gnumeric-general.schemas gnumeric-plugins.schemas ; do
f=/etc/gconf/schemas/$s
if [ -e $f ] ; then
echo "Obsoleted conffile $f found... "
if grep -q '^'$(md5sum $f | sed -e 's/ .*$//')'$' /usr/share/gnumeric/$s.md5sum ; then
echo "... no local changes detected. Removing."
rm -f $f
else
echo "... locally modified. Leaving as-is."
fi
fi
done
exit 0
|