mirror of
https://github.com/reactos/ahk_tests.git
synced 2024-11-23 11:39:42 +00:00
48b60012ff
The tests are available into AHK-Tests/ and next to their main zz*.ahk script. svn path=/trunk/ahk_tests/; revision=1890
16 lines
702 B
Bash
Executable File
16 lines
702 B
Bash
Executable File
#!/bin/bash
|
|
#detect wine and AHK compiler
|
|
if [ x"$WINE"x == "xx" ] ; then WINE=$(which wine) ; fi
|
|
if [ ! -x "$WINE" ] ; then echo Wine was not found in path, please install or set WINE variable. ; exit 1; fi
|
|
if [ ! -f Compiler/Ahk2Exe.exe ] ; then echo Please add AHK compiler here ; exit 1 ; fi
|
|
read
|
|
#get all the tests
|
|
TESTSLIST=$( find . -name zz\*.ahk -exec $WINE winepath -w {} \; )
|
|
#avoids being bothered by spaces in file names
|
|
IFS=$(echo -en "\n\b")
|
|
#build all the tests and copy them to AHK-Tests/ directory
|
|
for TEST in $TESTSLIST ; do
|
|
"$WINE" Compiler/Ahk2Exe.exe /in "$TEST" /out "${TEST%.ahk}.exe"
|
|
done
|
|
find . -wholename ./AHK-Tests -prune -o -name zz_*test.exe -exec cp {} AHK-Tests/ \;
|