File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -136,21 +136,22 @@ IF NOT "%Mode%" == "Unstable" (
136
136
CALL :recreate " Program\Documentation" || GOTO :error
137
137
138
138
REM Compile the documentation.
139
- FOR /R " Source\Documentation " %%F IN (*. doc *. docx *. docm *. xls *. xlsx *. xlsm *.odt ) DO ECHO %%~F && OfficeToPDF.exe /bookmarks /print " %%~F " " Program\Documentation\%%~nF .pdf" || GOTO :error
139
+ 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
140
140
> " Source\Documentation\Manual\version.py" ECHO version = '%Version% ' || GOTO :error
141
141
>> " Source\Documentation\Manual\version.py" ECHO release = '%Revision% ' || GOTO :error
142
142
PUSHD " Source\Documentation\Manual" && CALL make.bat clean & POPD || GOTO :error
143
143
PUSHD " Source\Documentation\Manual" && CALL make.bat latexpdf && POPD || GOTO :error
144
144
145
145
REM Copy the documentation.
146
- FOR /R " Source\Documentation" %%F IN (*.pdf) DO CALL :copy " %%~F " " Program\Documentation\%%~nF .pdf" || GOTO :error
146
+ FOR %%F IN (" Source\Documentation\*.pdf" ) DO CALL :copy " %%~F " " Program\Documentation\%%~nF .pdf" || GOTO :error
147
+ CALL :copy " Source\Documentation\Manual\_build\latex\Manual.pdf" " Program\Documentation\Manual.pdf" || GOTO :error
147
148
CALL :create " Program\Documentation\es"
148
149
CALL :copy " Source\Documentation\Manual\es\Manual.pdf" " Program\Documentation\es\Manual.pdf" || GOTO :error
149
150
ROBOCOPY /MIR /NJH /NJS " Source\Documentation\SampleFiles" " Program\Documentation\SampleFiles"
150
151
IF %ERRORLEVEL% GEQ 8 GOTO :error
151
152
152
153
REM Copy the documentation separately.
153
- FOR /R " Program\Documentation " %%F IN (*.pdf) DO CALL :copy " %%~F " " OpenRails-%Mode% -%%~nxF " || GOTO :error
154
+ FOR %%F IN (" Program\Documentation\ *.pdf" ) DO CALL :copy " %%~F " " OpenRails-%Mode% -%%~nxF " || GOTO :error
154
155
)
155
156
156
157
IF " %Mode% " == " Stable" (
You can’t perform that action at this time.
0 commit comments