buildbot_config/worker/prepare_ahk
Colin Finck 730b11c26d
Update workers to latest BuildBot release.
The directory name has been changed to reflect that.
2019-06-29 11:46:24 +02:00

21 lines
696 B
Bash
Executable File

#!/bin/bash
# ReactOS BuildBot Build Scripts
# Update the ahk tests checkout, copy the apps and the compiled tests
# Parameter $1 (optional) - SVN Revision number of the AHK tests
source ../../config.inc
AHKTESTS_URL=https://svn.reactos.org/project-tools/trunk/ahk_tests
AHK_DIR=$PWD/modules/AHK_Tests
AHK_REV=HEAD
if [ $# -eq 1 ] ; then AHK_REV=$1 ; fi
if [ -d $AHK_DIR ] ; then
svn --non-interactive --no-auth-cache --revision $AHK_REV update $AHK_DIR
else
svn --non-interactive --no-auth-cache --revision $AHK_REV checkout $AHKTESTS_URL $AHK_DIR
fi
rm -fv $AHK_DIR/Apps
rm -fv $AHK_DIR/Compiler
ln -s $PWD/../Apps $AHK_DIR/Apps ||exit $?
ln -s $PWD/../Compiler $AHK_DIR/Compiler ||exit $?