diff options
author | Littleboy | 2011-05-13 01:27:27 -0400 |
---|---|---|
committer | Littleboy | 2011-05-13 15:49:59 -0400 |
commit | c24f0775cd262c789f7d17ea0ed461c57e7c5f6e (patch) | |
tree | 584fa433f1a14a4eb506c338fced5523072799ea /devtools/create_project/scripts | |
parent | a08158a004425afb89ca984379c6d27fa71e763b (diff) | |
download | scummvm-rg350-c24f0775cd262c789f7d17ea0ed461c57e7c5f6e.tar.gz scummvm-rg350-c24f0775cd262c789f7d17ea0ed461c57e7c5f6e.tar.bz2 scummvm-rg350-c24f0775cd262c789f7d17ea0ed461c57e7c5f6e.zip |
CREATE_PROJECT: Handle paths with spaces in pre/post-build scripts
Diffstat (limited to 'devtools/create_project/scripts')
-rw-r--r-- | devtools/create_project/scripts/postbuild.cmd | 8 | ||||
-rw-r--r-- | devtools/create_project/scripts/prebuild.cmd | 2 |
2 files changed, 5 insertions, 5 deletions
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
|