lazarus/tools/runwait.sh
mattias 9f07a137d7 set +x attribute for scripts
git-svn-id: trunk@7434 -
2005-07-27 09:18:33 +00:00

23 lines
389 B
Bash
Executable File

#!/bin/bash
CommandLine=$@
#set -x
echo $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
# end.