summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/wine-unstable-hotfix
blob: 5a41912476eb9827e4eb746dff873adb7c4bfc61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
for w in wine-unstable wine-development; do
    if  [ -x /usr/bin/$w -a ! -x /usr/bin/wine ]; then
        printf '#!/bin/sh\n'$w' "$@"\n' > /usr/bin/wine
        chmod +x /usr/bin/wine
    fi
done

if [ -x /opt/wine-staging/bin/wine ]; then
    printf '#!/bin/sh\n/opt/wine-staging/bin/wine "$@"\n' > /usr/bin/wine
    chmod +x /usr/bin/wine
fi