File: malaga-bin.preinst

package info (click to toggle)
malaga 7.12-9
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 3,044 kB
  • sloc: ansic: 21,457; sh: 8,165; lisp: 504; makefile: 274
file content (22 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

set -e

action="$1"
oldversion="$2"

if [ "$action" != upgrade ]; then
    exit 0
fi

# Emacs mode moved to malaga-mode in 7.9-1, removing old malaga-bin's
# 50malaga-bin.el file (bug #454714)
if [ -e /etc/emacs/site-start.d/50malaga-bin.el ] && \
    dpkg --compare-versions "$oldversion" le-nl 7.8-4; then
    if [ $(dpkg -s malaga-mode | grep not-installed | wc -l) -gt 0 ]; then
        rm -f /etc/emacs/site-start.d/50malaga-bin.el
    fi
fi

#DEBHELPER#