@ECHO OFF

REM make sure we don't stomp variables in calling script
SETLOCAL

REM the location of this batch file
SET SOURCE="%~dp0"

REM target location
SET TARGET=%1

IF [%TARGET%]==[] GOTO FAIL

GOTO OK

:FAIL

ECHO Must supply target folder parameter, e.g.:
ECHO.
ECHO   deploy.bat ../deploy/lib/onyx
ECHO.
GOTO :EOF

:OK

REM copy assets
XCOPY %SOURCE%images\*.* %TARGET%\images\ /Q /E 

REM copy root folder files
COPY %SOURCE%*.txt %TARGET%\ >NUL

ENDLOCAL
