added starting wine for .exe files from Andrew

git-svn-id: trunk@6487 -
This commit is contained in:
mattias 2005-01-06 18:35:45 +00:00
parent e7d14403ef
commit f0a505b202

View File

@ -4,7 +4,17 @@ CommandLine=$@
#set -x
echo $CommandLine
$CommandLine
ext=${CommandLine#*.}
if [ "$ext" = "exe" ]; then
echo "Windows Executable detected. Attempting to use WINE..."
if [ -x $( which wine ) ]; then
wine $CommandLine
else
echo "WINE not found in path"
fi
else
$CommandLine
fi
echo "--------------------------------------------------"
echo "Press enter"
read