summaryrefslogtreecommitdiff
path: root/debian/cscope.preinst
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-12-10 22:05:56 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-12-10 22:05:56 +0100
commitdb6eaaa0269b7e0b98161ed97216c2d3986d1ceb (patch)
tree8f9ae010616f09b2bad52b0bd431653ba499de80 /debian/cscope.preinst
parent6bb13dc36d2ce783dfb4a157983d8fbb7baa3755 (diff)
cscope 15.6-515.6-5
* Remove left over Emacs startup file (Closes: #454377) * Update to Standards-Version 3.7.3 (no changes needed)
Diffstat (limited to 'debian/cscope.preinst')
-rw-r--r--debian/cscope.preinst24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/cscope.preinst b/debian/cscope.preinst
new file mode 100644
index 0000000..be518b4
--- /dev/null
+++ b/debian/cscope.preinst
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+cleanup_sitestart() {
+ if [ -e /etc/emacs/site-start.d/50cscope.el ]; then
+ rm -f /etc/emacs/site-start.d/50cscope.el
+ fi
+}
+
+case "$1" in
+ upgrade)
+ cleanup_sitestart
+ ;;
+
+ install|abort-upgrade)
+ ;;
+
+ *)
+ echo "$0 called with unknown argument '$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+exit 0