@@ -129,10 +129,12 @@ IF NOT "%Mode%" == "Unstable" (
129129
130130 REM Create the documentation folders for output.
131131 CALL :create " Program\Documentation" || GOTO :error
132+ CALL :create " Program\Documentation\Online" || GOTO :error
132133 CALL :create " Program\Documentation\es" || GOTO :error
133134
134135 REM Compile the documentation.
135136 FOR %%E IN (doc docx docm xls xlsx xlsm odt) DO FOR %%F IN (" Source\Documentation\*.%%E " ) DO ECHO %%~F && OfficeToPDF.exe /bookmarks /print " %%~F " " Program\Documentation\%%~nF .pdf" || GOTO :error
137+ FOR %%E IN (doc docx docm xls xlsx xlsm odt) DO FOR %%F IN (" Source\Documentation\Online\*.%%E " ) DO ECHO %%~F && OfficeToPDF.exe /bookmarks /print " %%~F " " Program\Documentation\Online\%%~nF .pdf" || GOTO :error
136138 > " Source\Documentation\Manual\version.py" ECHO version = '%OpenRails_Version% ' || GOTO :error
137139 >> " Source\Documentation\Manual\version.py" ECHO release = '%OpenRails_Revision% ' || GOTO :error
138140 PUSHD " Source\Documentation\Manual" && CALL make.bat clean & POPD || GOTO :error
@@ -147,6 +149,7 @@ IF NOT "%Mode%" == "Unstable" (
147149
148150 REM Copy the documentation separately.
149151 FOR %%F IN (" Program\Documentation\*.pdf" ) DO CALL :copy " %%~F " " OpenRails-%Mode% -%%~nxF " || GOTO :error
152+ FOR %%F IN (" Program\Documentation\Online\*.pdf" ) DO CALL :copy " %%~F " " OpenRails-%Mode% -%%~nxF " || GOTO :error
150153)
151154
152155IF " %Mode% " == " Stable" (
@@ -162,7 +165,7 @@ IF "%Mode%" == "Stable" (
162165)
163166
164167REM Create binary and source zips.
165- PUSHD " Program" && 7za.exe a -r -tzip -x^^! *.xml " ..\OpenRails-%Mode% .zip" . && POPD || GOTO :error
168+ PUSHD " Program" && 7za.exe a -r -tzip -x^^! *.xml -x ^^! Online " ..\OpenRails-%Mode% .zip" . && POPD || GOTO :error
1661697za.exe a -r -tzip -x^^! .* -x^^! obj -x^^! lib -x^^! _build -x^^! *.bak " OpenRails-%Mode% -Source.zip" " Source" || GOTO :error
167170
168171ENDLOCAL
0 commit comments