| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
### Historic cleanup code, delete files like: |
| 6 |
# /usr/share/doc/gri-html-doc/html/.dhelp |
| 7 |
|
| 8 |
if [ -f "/usr/share/doc/gri-html-doc/html/.dhelp" ]; then |
| 9 |
rm -f /usr/share/doc/gri-html-doc/html/.dhelp |
| 10 |
rmdir --ignore-fail-on-non-empty --parents /usr/share/doc/gri-html-doc/html |
| 11 |
fi |
| 12 |
|
| 13 |
### Delete unedited potato /etc/emacs file because it wasn't a conffile |
| 14 |
if [ x$1 = xupgrade ] |
| 15 |
then |
| 16 |
if [ `md5sum < /etc/emacs/site-start.d/50gri-html-doc.el | cut -f1 "-d "` = 4b1366ce9d1e5de4670aba73f37b212a ] |
| 17 |
then |
| 18 |
mv /etc/emacs/site-start.d/50gri-html-doc.el /etc/emacs/site-start.d/50gri-html-doc.el.dpkg-old |
| 19 |
fi |
| 20 |
fi |
| 21 |
|
| 22 |
#DEBHELPER# |