@@ -109,13 +109,12 @@ IF "%ERRORLEVEL%" == "9009" GOTO :error
109109
110110CALL :copy " Program\RunActivity.exe" " Program\RunActivityLAA.exe" || GOTO :error
111111editbin /NOLOGO /LARGEADDRESSAWARE " Program\RunActivityLAA.exe" || GOTO :error
112- copy " Program\RunActivity.exe.config" " Program\RunActivityLAA.exe.config" || GOTO :error
112+ CALL : copy " Program\RunActivity.exe.config" " Program\RunActivityLAA.exe.config" || GOTO :error
113113ECHO Created large address aware version of RunActivity.exe.
114114
115- REM Copy the Web content, empty the destination folder first
116- IF EXIST " Program\Content\Web" RMDIR " Program\Content\Web" /S /Q
117- IF NOT EXIST " Program\Content\Web" MKDIR " Program\Content\Web"
118- XCOPY " Source\RunActivity\Viewer3D\WebServices\Web" " Program\Content\Web" /S /Y || GOTO :error
115+ REM Copy the web content
116+ ROBOCOPY /MIR /NJH /NJS " Source\RunActivity\Viewer3D\WebServices\Web" " Program\Content\Web"
117+ IF %ERRORLEVEL% GEQ 8 GOTO :error
119118
120119REM Copy version number from OpenRails.exe into all other 1st party files
121120FOR %%F IN (" Program\*.exe" , " Program\Orts.*.dll" , " Program\Contrib.*.dll" , " Program\Tests.dll" ) DO (
@@ -144,7 +143,9 @@ IF NOT "%Mode%" == "Unstable" (
144143 PUSHD " Source\Documentation\Manual" && CALL make.bat latexpdf && POPD || GOTO :error
145144
146145 REM Copy the documentation.
147- FOR /R " Source\Documentation" %%F IN (*.pdf *.txt) DO CALL :copy " %%~F " " Program\Documentation\%%~nF .pdf" || GOTO :error
146+ FOR /R " Source\Documentation" %%F IN (*.pdf) DO CALL :copy " %%~F " " Program\Documentation\%%~nF .pdf" || GOTO :error
147+ CALL :create " Program\Documentation\es"
148+ CALL :copy " Source\Documentation\Manual\es\Manual.pdf" " Program\Documentation\es\Manual.pdf" || GOTO :error
148149 ROBOCOPY /MIR /NJH /NJS " Source\Documentation\SampleFiles" " Program\Documentation\SampleFiles"
149150 IF %ERRORLEVEL% GEQ 8 GOTO :error
150151
0 commit comments