summaryrefslogtreecommitdiff
path: root/debian/libgcjLGCJ.postrm
blob: 2de6718ce96ad533abb01f5f420d33f66eebe879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh -e

case "$1" in
    remove|purge)
        # only purge if no other library is installed.
        if [ -z "$(ls /usr/lib/libgcj.so.@GCJ@* 2>/dev/null)" ]; then
	    rm -f /var/lib/gcj-@BV@/classmap.db
	    rmdir --ignore-fail-on-non-empty /var/lib/gcj-@BV@ 2>/dev/null || true
	fi
esac

#DEBHELPER#