forked from WinMerge/winmerge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_html_en.bat
48 lines (37 loc) · 1.34 KB
/
build_html_en.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
pushd %~dp0
call configuration.bat
set docbook_inputfile=EN\Index.xml
set docbook_use_stylesheet=EN\xsl\html.xsl
set docbook_outputdir=%docbook_build_path%\html-en
set ads=false
if "%1" == "withads" goto withads
if not "%1" == "" goto withadserror
goto start
:withads
set ads=true
echo **************************************
echo * The manual includes advertisements *
echo **************************************
goto start
:withadserror
echo "%1" is a invalid argument. Please use "withads", if you want advertisements in the manual.
goto end
:start
if not exist "%docbook_outputdir%" mkdir "%docbook_outputdir%"
echo Copy images ...
if not exist "%docbook_outputdir%\images" mkdir "%docbook_outputdir%\images"
copy "Shared\images\*.gif" "%docbook_outputdir%\images\."
copy "Shared\images\*.png" "%docbook_outputdir%\images\."
echo Copy screenshots...
if not exist "%docbook_outputdir%\screenshots" mkdir "%docbook_outputdir%\screenshots"
copy "EN\screenshots\*.*" "%docbook_outputdir%\screenshots\."
echo Copy stylesheets...
if not exist "%docbook_outputdir%\css" mkdir "%docbook_outputdir%\css"
copy "Shared\css\*.css" "%docbook_outputdir%\css"
echo Create Manual HTML files...
%docbook_xsltproc% --xinclude --nonet --stringparam base.dir %docbook_outputdir%/ --path .. %docbook_use_stylesheet% %docbook_inputfile%
echo Finished!
:end
popd
@echo on