File: postinst

package info (click to toggle)
cal 4.0-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 808 kB
  • sloc: ansic: 1,324; makefile: 50; sh: 18
file content (28 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh -e
# 
# Postinst file for ccal



set -e

case "$1" in
    configure)
    # Move a conffile without triggering a dpkg question
        if [ -e /etc/calcol ] && dpkg-maintscript-helper supports mv_conffile; then
            dpkg-maintscript-helper mv_conffile \
                /etc/calcol /etc/cal.col 3.5-7 ccal -- "$@"
        fi
         ;;
     abort-upgrade|abort-remove|abort-deconfigure)
         ;;
     *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac

#DEBHELPER#


exit 0