File: postrm-ucf

package info (click to toggle)
debhelper 13.29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,464 kB
  • sloc: perl: 15,632; makefile: 131; sh: 9
file content (12 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
if [ "$1" = "purge" ]; then
	for ext in .ucf-new .ucf-old .ucf-dist ""; do
		rm -f "#UCFDEST#$ext"
	done
	
	if [ -x "`command -v ucf`" ]; then
		ucf --purge "#UCFDEST#"
	fi
	if [ -x "`command -v ucfr`" ]; then
		ucfr --purge #PACKAGE# "#UCFDEST#"
	fi
fi