File: scala.postinst

package info (click to toggle)
scala 2.11.12-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 62,828 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,250; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (27 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

set -e

priority=2111
basedir=/usr/share/scala-2.11

case "$1" in
    configure)
        update-alternatives \
            --install /usr/bin/scala    scala    $basedir/bin/scala $priority \
            --slave   /usr/bin/scalac   scalac   $basedir/bin/scalac \
            --slave   /usr/bin/scaladoc scaladoc $basedir/bin/scaladoc \
            --slave   /usr/bin/scalap   scalap   $basedir/bin/scalap \
            --slave   /usr/bin/fsc      fsc      $basedir/bin/fsc \
            --slave   /usr/share/man/man1/scala.1.gz    scala.1.gz    $basedir/man/man1/scala.1.gz \
            --slave   /usr/share/man/man1/scalac.1.gz   scalac.1.gz   $basedir/man/man1/scalac.1.gz \
            --slave   /usr/share/man/man1/scaladoc.1.gz scaladoc.1.gz $basedir/man/man1/scaladoc.1.gz \
            --slave   /usr/share/man/man1/scalap.1.gz   scalap.1.gz   $basedir/man/man1/scalap.1.gz \
            --slave   /usr/share/man/man1/fsc.1.gz      fsc.1.gz      $basedir/man/man1/fsc.1.gz
        ;;

esac

#DEBHELPER#

exit 0