#!/bin/bash
selfdir="$(cd $(dirname "$0"); pwd)"
if [ -z "$WINEPREFIX" ]; then
    echo "This script must be run from within a Wine virtual drive." >&2
    exit 1
fi

winepath="$(which wine)"
winepath="${winepath//\/\///}"
winepath="${winepath%bin/wine}"
. "$selfdir"/dependencies3.sh "$winepath"/bin/wine "$winepath"/bin/wineserver "$winepath"/bin/wine-preloader "$winepath"/lib/libwine.so.1 "$winepath"/lib/wine/*.so "$selfdir"/all-deps.png
