#!/bin/sh
# $Id: run-wine,v 1.2 2012/09/08 17:45:27 friedman Exp $

cd $HOME/etc/misc/.wine/dosdevices/c: || exit $?

prg=$1
shift

found=`find "Program Files"* -ipath "*/$prg" -o -ipath "*/$prg.exe"`
case $found in
    Program* ) prg=C:/$found ;;
esac

exec run-misc.sh ${WINE-wine} "$prg" "$@"

# eof
