Debreate - Debian Package Builder Debreate
A utility for creating Debian packages (.deb)
Brought to you by:
antumdeluge
#!/bin/bash -e
#DEBHELPER#
# Script to clean up residual files that might be left behind after uninstall
prefix=/usr
datadir="${prefix}/share/debreate"
icondir="${prefix}/share/icons/gnome"
if [ -d "${datadir}" ]; then
echo "Removing residual python bytecode & directories from ${datadir} ...";
find "${datadir}" -type f -name "*.pyc" -delete;
find "${datadir}" -type d -empty -delete;
fi
# Update icon cache (taken from script generated by dh_icons)
if which update-icon-caches >/dev/null 2>&1 ; then
update-icon-caches "${icondir}"
fi