@@ -109,13 +109,12 @@ IF "%ERRORLEVEL%" == "9009" GOTO :error
109
109
110
110
CALL :copy " Program\RunActivity.exe" " Program\RunActivityLAA.exe" || GOTO :error
111
111
editbin /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
113
113
ECHO Created large address aware version of RunActivity.exe.
114
114
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
119
118
120
119
REM Copy version number from OpenRails.exe into all other 1st party files
121
120
FOR %%F IN (" Program\*.exe" , " Program\Orts.*.dll" , " Program\Contrib.*.dll" , " Program\Tests.dll" ) DO (
@@ -144,7 +143,9 @@ IF NOT "%Mode%" == "Unstable" (
144
143
PUSHD " Source\Documentation\Manual" && CALL make.bat latexpdf && POPD || GOTO :error
145
144
146
145
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
148
149
ROBOCOPY /MIR /NJH /NJS " Source\Documentation\SampleFiles" " Program\Documentation\SampleFiles"
149
150
IF %ERRORLEVEL% GEQ 8 GOTO :error
150
151
0 commit comments