mirror of
https://github.com/reactos/ahk_tests.git
synced 2024-11-23 11:39:42 +00:00
66267ccf37
Rename AHK-Tests/ compiled tests directory to Tests/ Its unclear to have modules/AHK_Tests/AHK-Tests svn path=/trunk/ahk_tests/; revision=2282
16 lines
749 B
Bash
Executable File
16 lines
749 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 -p "Setup checks done. Press enter to start build."
|
|
# 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 Tests/ directory
|
|
for TEST in $TESTSLIST ; do
|
|
"$WINE" Compiler/Ahk2Exe.exe /in "$TEST" /out "${TEST%.ahk}.exe"
|
|
done
|
|
find . -wholename ./Tests -prune -o -name zz_*test.exe -exec cp -a {} Tests/ \;
|