File: gimp-data.postinst

package info (click to toggle)
gimp 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 222,880 kB
  • sloc: ansic: 870,914; python: 10,965; lisp: 10,857; cpp: 7,355; perl: 4,536; sh: 1,753; xml: 972; yacc: 609; lex: 348; javascript: 150; makefile: 42
file content (20 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
set -e

# Clean up unused gimp 2 directory
if dpkg --compare-versions "$2" lt-nl "3.0.0~RC1-4~" ; then
	if [ -d /etc/gimp/2.0/ ] ; then
		rm -f /etc/gimp/2.0/*
		rmdir --ignore-fail-on-non-empty /etc/gimp/2.0/
	fi
fi

case "$1" in
    (purge)
	if [ -d /etc/gimp/3.0/ ] ; then
		rm -f /etc/gimp/3.0/*
		rmdir --ignore-fail-on-non-empty /etc/gimp/3.0/
	fi
esac

#DEBHELPER#