File: wineVERSION.postinst

package info (click to toggle)
wine-development 2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 187,144 kB
  • ctags: 315,546
  • sloc: ansic: 2,640,448; perl: 18,914; yacc: 15,420; makefile: 8,447; objc: 6,157; lex: 4,268; sh: 886; cpp: 816; awk: 69; xml: 69
file content (78 lines) | stat: -rw-r--r-- 2,575 bytes parent folder | download | duplicates (7)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/sh

set -e

case "$1" in
    configure)
        dpkg-trigger wineVERSION
        ;;
    triggered)
        # debian alternatives system
        case DEBSUFFIX in
            -stable)
                PRIORITY=70;;
            -development)
                PRIORITY=50;;
            *)
                echo "DEBSUFFIX unknown"; exit 1;;
        esac

        apps="wineserver
              msiexec
              regedit
              winecfg
              winedbg
              wineboot
              winefile
              winepath
              regsvr32
              wineconsole

              wine64

              wmc
              wrc
              widl
              winecpp
              winegcc
              wineg++
              winedump
              winebuild
              winemaker"

        slaves=
        for app in $apps; do
            slaves="$slaves
                    --slave /usr/bin/$app $app
                            /usr/bin/${app}DEBSUFFIX
                    --slave /usr/share/man/man1/${app}.1.gz ${app}.1.gz
                            /usr/share/man/man1/${app}DEBSUFFIX.1.gz"
        done

        update-alternatives --quiet \
            --install /usr/bin/wine wine /usr/bin/wineDEBSUFFIX $PRIORITY \
            $slaves \
            --slave /usr/share/man/man1/wine.1.gz wine.1.gz \
                    /usr/share/man/man1/wineDEBSUFFIX.1.gz \
            --slave /usr/share/man/de/man1/wine.1.gz wine.de.1.gz \
                    /usr/share/man/de/man1/wineDEBSUFFIX.1.gz \
            --slave /usr/share/man/fr/man1/wine.1.gz wine.fr.1.gz \
                    /usr/share/man/fr/man1/wineDEBSUFFIX.1.gz \
            --slave /usr/share/man/pl/man1/wine.1.gz wine.pl.1.gz \
                    /usr/share/man/pl/man1/wineDEBSUFFIX.1.gz \
            --slave /usr/share/man/de/man1/wineserver.1.gz wineserver.de.1.gz \
                    /usr/share/man/de/man1/wineserverDEBSUFFIX.1.gz \
            --slave /usr/share/man/fr/man1/wineserver.1.gz wineserver.fr.1.gz \
                    /usr/share/man/fr/man1/wineserverDEBSUFFIX.1.gz \
            --slave /usr/share/man/de/man1/winemaker.1.gz winemaker.de.1.gz \
                    /usr/share/man/de/man1/winemakerDEBSUFFIX.1.gz \
            --slave /usr/share/man/fr/man1/winemaker.1.gz winemaker.fr.1.gz \
                    /usr/share/man/fr/man1/winemakerDEBSUFFIX.1.gz \
            --slave /usr/share/icons/hicolor/scalable/apps/wine.svg wine.svg \
                    /usr/share/icons/hicolor/scalable/apps/wineDEBSUFFIX.svg
        ;;
esac

#DEBHELPER#

exit 0