summaryrefslogtreecommitdiff
path: root/debian/emacsVER-common.prerm
blob: 970bd5c1b4ecf882aef507ab95c019903adb8305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

MAJOR=@MAJOR_VERSION@
MINOR=@MINOR_VERSION@
FULL=@FULL_VERSION@

set +e
# Only remove these directories if they're empty.
rmdir /usr/local/share/emacs/${FULL}/site-lisp 2>/dev/null
rmdir /usr/local/share/emacs/${FULL} 2>/dev/null
set -e

#DEBHELPER#