summarylogtreecommitdiffstats
path: root/djgpp-wine.sh
blob: 3d6f3df69938579ab1272ee44298f033501d1d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

djgpp_prefix=/usr/i686-pc-msdosdjgpp

# run it in a custom WINEPREFIX to not mess with default ~/.wine
if ! test -d "${WINEPREFIX}"
then
  export WINEPREFIX=~/.wine-i686-pc-msdosdjgpp
fi

# WINEPATH is used to find dlls, otherwise they should lie next to the exe
if test -z "${WINEPATH}"
then
  export WINEPATH=${djgpp_prefix}/bin
fi

wine "$@"