CREATE_PROJECT: Handle paths with spaces in pre/post-build scripts

This commit is contained in:
Littleboy 2011-05-13 01:27:27 -04:00
parent a08158a004
commit c24f0775cd
2 changed files with 5 additions and 5 deletions

View file

@ -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/*.zip" %~2 1>NUL 2>&1
REM xcopy /F /Y "%~1/gui/themes/translations.dat" %~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/lib/%~3/SDL.dll" "%~2" 1>NUL 2>&1
xcopy /F /Y "%~4/README-SDL" %~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 if "%~5"=="0" goto done
echo Running installer script echo Running installer script
echo. 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 if not %errorlevel% == 0 goto error_script
goto done goto done

View file

@ -14,7 +14,7 @@ if "%~1"=="" goto error_root
if "%~2"=="" goto error_target if "%~2"=="" goto error_target
REM Run the revision script 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 if not %errorlevel% == 0 goto error_script
goto done goto done