[go: up one dir, main page]

Menu

[dfe9bc]: / debian / postrm  Maximize  Restore  History

Download this file

21 lines (15 with data), 546 Bytes

#!/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