File: postinst

package info (click to toggle)
lyskom-elisp-client 0.48%2Bgit.20160707.372be663-1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 3,484 kB
  • ctags: 3,170
  • sloc: lisp: 51,958; xml: 1,028; makefile: 70; sh: 53
file content (32 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (6)
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
29
30
31
32
#!/bin/sh

set -e

case "$1" in
    configure)
        # Load debconf library.
        . /usr/share/debconf/confmodule

        db_get lyskom-elisp-client/server-list-query
        if [ "$RET" = "true" ]; then
            foo=english
        else
            foo=full
        fi
        ln -sf ${foo}serverlist.el /usr/share/emacs/site-lisp/lyskom-elisp-client/serverlist.el

        /usr/lib/emacsen-common/emacs-package-install lyskom-elisp-client
        ;;

    abort-upgrade|abort-remove|abort-deconfigure)
        exit 0
        ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
        ;;
esac


#DEBHELPER#