Remove the whole emacs compiled directory...

... rather than just .elc file. Thanks to Kevin Ryde. (Closes: #710572)
This commit is contained in:
Modestas Vainius 2013-11-03 16:27:24 +02:00
parent d2afae7e18
commit a18f69b89d
2 changed files with 4 additions and 2 deletions

2
debian/changelog vendored
View File

@ -13,6 +13,8 @@ cmake (2.8.12-0r1) UNRELEASED; urgency=low
* Add compiled cmake-mode.elc to load-path and do not barf in emacs if
cmake-data was removed but not purged. Thanks to Kevin Ryde.
(Closes: #710573)
* Remove the whole emacs compiled directory rather than just .elc file.
Thanks to Kevin Ryde. (Closes: #710572)
-- Modestas Vainius <modax@debian.org> Sun, 03 Nov 2013 12:28:06 +0200

View File

@ -3,9 +3,9 @@ set -e
FLAVOR=$1
PACKAGE=cmake-data
ELCFILE=cmake-mode.elc
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
if [ ${FLAVOR} != emacs ]; then
echo remove/${PACKAGE}: Purging byte-compiled files for ${FLAVOR}
rm -f /usr/share/${FLAVOR}/site-lisp/${ELCFILE}
rm -rf "${ELCDIR}"
fi