From c24f0775cd262c789f7d17ea0ed461c57e7c5f6e Mon Sep 17 00:00:00 2001 From: Littleboy Date: Fri, 13 May 2011 01:27:27 -0400 Subject: CREATE_PROJECT: Handle paths with spaces in pre/post-build scripts --- devtools/create_project/scripts/postbuild.cmd | 8 ++++---- devtools/create_project/scripts/prebuild.cmd | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'devtools/create_project/scripts') diff --git a/devtools/create_project/scripts/postbuild.cmd b/devtools/create_project/scripts/postbuild.cmd index 75a916db49..a5051d8228 100644 --- a/devtools/create_project/scripts/postbuild.cmd +++ b/devtools/create_project/scripts/postbuild.cmd @@ -37,16 +37,16 @@ REM xcopy /F /Y "%~1/dists/engine-data/*.cpt" %~2 1>NUL 2>&1 REM xcopy /F /Y "%~1/gui/themes/*.zip" %~2 1>NUL 2>&1 REM xcopy /F /Y "%~1/gui/themes/translations.dat" %~2 1>NUL 2>&1 -xcopy /F /Y "%~4/lib/%~3/SDL.dll" %~2 1>NUL 2>&1 -xcopy /F /Y "%~4/README-SDL" %~2 1>NUL 2>&1 +xcopy /F /Y "%~4/lib/%~3/SDL.dll" "%~2" 1>NUL 2>&1 +xcopy /F /Y "%~4/README-SDL" "%~2" 1>NUL 2>&1 -xcopy /F /Y "%~1/backends/vkeybd/packs/vkeybd_default.zip" %~2 1>NUL 2>&1 +xcopy /F /Y "%~1/backends/vkeybd/packs/vkeybd_default.zip" "%~2" 1>NUL 2>&1 if "%~5"=="0" goto done echo Running installer script echo. -@call cscript "%~1/devtools/create_project/scripts/installer.vbs" %~1 %~2 %~3 1>NUL +@call cscript "%~1/devtools/create_project/scripts/installer.vbs" "%~1" "%~2" "%~3" 1>NUL if not %errorlevel% == 0 goto error_script goto done diff --git a/devtools/create_project/scripts/prebuild.cmd b/devtools/create_project/scripts/prebuild.cmd index dd4d12a851..fbab426137 100644 --- a/devtools/create_project/scripts/prebuild.cmd +++ b/devtools/create_project/scripts/prebuild.cmd @@ -14,7 +14,7 @@ if "%~1"=="" goto error_root if "%~2"=="" goto error_target REM Run the revision script -@call cscript "%~1/devtools/create_project/scripts/revision.vbs" %~1 %~2 1>NUL +@call cscript "%~1/devtools/create_project/scripts/revision.vbs" "%~1" "%~2" 1>NUL if not %errorlevel% == 0 goto error_script goto done -- cgit v1.2.3