File: wine.in

package info (click to toggle)
wine 8.0~repack-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 349,064 kB
  • sloc: ansic: 3,840,948; perl: 22,322; yacc: 18,640; javascript: 13,193; makefile: 11,359; objc: 6,780; lex: 5,004; python: 2,581; cpp: 1,690; xml: 1,332; sh: 868; java: 750; cs: 49
file content (40 lines) | stat: -rw-r--r-- 1,038 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
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh -e

wine32=/BINDIR/wine
wine64=/BINDIR/wine64

wine32_hint () {
    echo "it looks like wine32VERSION is missing, you should install it."
    if [ "$(dpkg --print-architecture)" = "amd64" ] && ! dpkg --print-foreign-architectures | grep -qx "i386"; then
        echo "multiarch needs to be enabled first.  as root, please"
        echo "execute \"dpkg --add-architecture i386 && apt-get update &&"
        echo "apt-get install wine32VERSION:i386\""
    else
        echo "as root, please execute \"apt-get install wine32VERSION:i386\""
    fi
}

if test -x $wine32; then
    wine=$wine32
elif test -x $wine64; then
    wine=$wine64
    if test -z "$WINELOADER"; then
        export WINELOADER=$wine64
    fi
    case "x$WINEDEBUG" in
        x-all*|x*,-all*|x*err-all*)
            ;;
        *)
            wine32_hint >&2
            ;;
    esac
else
    echo "error: unable to find wine executable.  this shouldn't happen." >&2
    exit 1
fi

if test -z "$WINEDEBUG"; then
    export WINEDEBUG=fixme-all
fi

exec $wine "$@"