mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 11:47:32 +01:00
added starting wine for .exe files from Andrew
git-svn-id: trunk@6487 -
This commit is contained in:
parent
e7d14403ef
commit
f0a505b202
@ -4,7 +4,17 @@ CommandLine=$@
|
|||||||
#set -x
|
#set -x
|
||||||
|
|
||||||
echo $CommandLine
|
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
|
$CommandLine
|
||||||
|
fi
|
||||||
echo "--------------------------------------------------"
|
echo "--------------------------------------------------"
|
||||||
echo "Press enter"
|
echo "Press enter"
|
||||||
read
|
read
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user