postinst is in hicolor-icon-theme 0.15-0ubuntu1.
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
UPDATE_CACHE=
if [ -x /usr/bin/gtk-update-icon-cache-3.0 ]; then
UPDATE_CACHE=gtk-update-icon-cache-3.0
elif [ -x /usr/bin/gtk-update-icon-cache ]; then
UPDATE_CACHE=gtk-update-icon-cache
fi
if [ -n "$UPDATE_CACHE" ]; then
if ! "$UPDATE_CACHE" --force --quiet /usr/share/icons/hicolor; then
echo "WARNING: icon cache generation failed"
fi
fi
if [ "$1" = "triggered" ]; then
exit 0
fi
|