mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 11:24:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
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 trash crash
 | 
						|
 | 
						|
# end.
 |