[general] Test whether wine executable is actually wine

This commit is contained in:
Philip Rebohle 2018-05-07 09:47:37 +02:00
parent db7332972e
commit 2dae99e748
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 11 additions and 3 deletions

View File

@ -10,10 +10,18 @@ if [ ! -f "$dlls_dir/d3d11.dll" ] || [ ! -f "$dlls_dir/dxgi.dll" ]; then
exit 1
fi
[ -z "$wine" ] && wine="wine"
if [ -z "$wine" ]; then
if [ $build_arch == "x86_64" ]; then
wine="wine64"
else
wine="wine"
fi
fi
if [ $build_arch == "x86_64" ]; then
wine="${wine}64"
winever=`$wine --version | grep wine`
if [ -z "$winever" ]; then
echo "$wine:"' Not a wine executable. Check your $wine.' >&2
exit 1
fi
quiet=false