File: postrm-ucf

package info (click to toggle)
debhelper 9.20150101
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,460 kB
  • sloc: perl: 5,757; makefile: 89; sh: 7
file content (12 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (7)
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 "`which ucf 2>/dev/null`" ]; then
		ucf --purge "#UCFDEST#"
	fi
	if [ -x "`which ucfr 2>/dev/null`" ]; then
		ucfr --purge #PACKAGE# "#UCFDEST#"
	fi
fi