summaryrefslogtreecommitdiff
path: root/emacsen-common/remove
blob: 1019db82d7d4f8539b463c53a4cb82201fbf2e64 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# invoke from /usr/lib/emacsen-common/packages/remove/${PACKAGE}
# or directly from the package prerm
set -e

elpadir="/usr/share/$1/site-lisp/elpa"
rm --one-file-system -rf "$elpadir/#ELPAPACKAGE#-#ELPAVERSION#"
if [ -d "$elpadir" ]; then
    rmdir --ignore-fail-on-non-empty "$elpadir"
fi