File: chezscheme.postinst

package info (click to toggle)
chezscheme 9.5.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 61,640 kB
  • sloc: ansic: 17,508; sh: 759; makefile: 509; csh: 423
file content (29 lines) | stat: -rw-r--r-- 1,107 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
23
24
25
26
27
28
29
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    update-alternatives --install /usr/bin/scheme \
                                  scheme \
                                  /usr/bin/chezscheme \
                                  20 \
                        --slave /usr/share/man/man1/scheme.1.gz \
                                scheme.1.gz \
                                /usr/share/man/man1/chezscheme.1.gz
    update-alternatives --install /usr/bin/scheme-script \
                                  scheme-script \
                                  /usr/bin/chezscheme \
                                  20 \
                        --slave /usr/share/man/man1/scheme-script.1.gz \
                                scheme-script.1.gz \
                                /usr/share/man/man1/scheme-script-chez.1.gz

    if dpkg --compare-versions "$2" lt-nl "9.5.4+dfsg-4~" ; then
        CHEZ_VERSION=9.5
        update-alternatives --remove scheme /usr/bin/chezscheme${CHEZ_VERSION}
        update-alternatives --remove scheme-script /usr/bin/chezscheme${CHEZ_VERSION}
    fi

fi

#DEBHELPER#