1a4e54154Smrg#! /bin/bash 2a4e54154Smrg 3a4e54154Smrgcase "$1" in 4a4e54154Smrg *.exe) 5a4e54154Smrg fccwd=`pwd` 6a4e54154Smrg cd $(IFS=:;for i in $PATH; do echo $i|grep mingw> /dev/null; [ $? -eq 0 ] && echo $i; done) 7a4e54154Smrg /usr/bin/env wine $fccwd/$@ 8a4e54154Smrg ;; 9a4e54154Smrg *) 10a4e54154Smrg $@ 11a4e54154Smrg ;; 12a4e54154Smrgesac 13a4e54154Smrg 14