-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPublishDocumentation.bat
executable file
·94 lines (72 loc) · 5.92 KB
/
PublishDocumentation.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
REM - Script to build and publish documentation sets to the WSDOT http server
SET DOC_TARGET=\\wsdot\Resources\Topics\Publish\Web\ProdCF\EESC\Bridge\software\Documentation
REM - use only the major and minor build number
REM - this assumes documentation for version 1.1.0 is the same as for version 1.1.1
REM - which will generally be true. This way we don't have to publish new documentation
REM - for every bug-fix release. Just use 1.1 for the version number
SET BRIDGELINK_DOCUMENTATION_VERSION=8.0
SET BETOOLBOX_DOCUMENTATION_VERSION=%BRIDGELINK_DOCUMENTATION_VERSION%
SET PGSUPER_DOCUMENTATION_VERSION=%BRIDGELINK_DOCUMENTATION_VERSION%
SET PGSPLICE_DOCUMENTATION_VERSION=%BRIDGELINK_DOCUMENTATION_VERSION%
SET PGSLIBRARY_VERISON=%BRIDGELINK_DOCUMENTATION_VERSION%
SET XBRATE_DOCUMENTATION_VERSION=%BRIDGELINK_DOCUMENTATION_VERSION%
SET BARLIST_DOCUMENTATION_VERSION=%BRIDGELINK_DOCUMENTATION_VERSION%
REM - Build the documentation sets
call %ARPDIR%\BridgeLink\Documentation\BuildDocumentation.bat %BRIDGELINK_DOCUMENTATION_VERSION%
call %ARPDIR%\BEToolbox\Documentation\BuildDocumentation.bat %BETOOLBOX_DOCUMENTATION_VERSION%
call %ARPDIR%\PGSuper\Documentation\BuildDocumentation.bat %PGSUPER_DOCUMENTATION_VERSION%
call %ARPDIR%\PGSuper\TxDOTAgent\Documentation\BuildDocumentation.bat %PGSUPER_DOCUMENTATION_VERSION%
call %ARPDIR%\PGSuper\KDOTExport\Documentation\BuildDocumentation.bat %PGSUPER_DOCUMENTATION_VERSION%
call %ARPDIR%\XBeamRate\Documentation\BuildDocumentation.bat %XBRATE_DOCUMENTATION_VERSION%
call %ARPDIR%\Barlist\Documentation\BuildDocumentation.bat %BARLIST_DOCUMENTATION_VERSION%
call %ARPDIR%\Barlist\Barlist\Documentation\BuildDocumentation.bat %BARLIST_DOCUMENTATION_VERSION%
cd %ARPDIR%\BridgeLink
REM the /b option is for build only, no publish
if "%1" == "/b" goto END
REM - Copy the documentation sets to the WSDOT server
rmdir /S /Q %DOC_TARGET%\BridgeLink\%BRIDGELINK_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\BridgeLink\%BRIDGELINK_DOCUMENTATION_VERSION%\
copy %ARPDIR%\BridgeLink\Documentation\BridgeLink.dm %DOC_TARGET%\BridgeLink\%BRIDGELINK_DOCUMENTATION_VERSION%\BridgeLink.dm.html
xcopy /s /y /d %ARPDIR%\BridgeLink\Documentation\doc\html\* %DOC_TARGET%\BridgeLink\%BRIDGELINK_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\BEToolbox\%BETOOLBOX_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\BEToolbox\%BETOOLBOX_DOCUMENTATION_VERSION%\
copy %ARPDIR%\BEToolbox\Documentation\BEToolbox.dm %DOC_TARGET%\BEToolbox\%BETOOLBOX_DOCUMENTATION_VERSION%\BEToolbox.dm.html
xcopy /s /y /d %ARPDIR%\BEToolbox\Documentation\doc\html\* %DOC_TARGET%\BEToolbox\%BETOOLBOX_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\PGSuper\%PGSUPER_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\PGSuper\%PGSUPER_DOCUMENTATION_VERSION%\
copy %ARPDIR%\PGSuper\Documentation\PGSuper.dm %DOC_TARGET%\PGSuper\%PGSUPER_DOCUMENTATION_VERSION%\PGSuper.dm.html
xcopy /s /y /d %ARPDIR%\PGSuper\Documentation\PGSuper\doc\html\* %DOC_TARGET%\PGSuper\%PGSUPER_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\PGSplice\%PGSPLICE_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\PGSplice\%PGSPLICE_DOCUMENTATION_VERSION%\
copy %ARPDIR%\PGSuper\Documentation\PGSplice.dm %DOC_TARGET%\PGSplice\%PGSPLICE_DOCUMENTATION_VERSION%\PGSplice.dm.html
xcopy /s /y /d %ARPDIR%\PGSuper\Documentation\PGSplice\doc\html\* %DOC_TARGET%\PGSplice\%PGSPLICE_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\PGSLibrary\%PGSLIBRARY_VERISON%\
mkdir %DOC_TARGET%\PGSLibrary\%PGSLIBRARY_VERISON%\
copy %ARPDIR%\PGSuper\Documentation\PGSLibrary.dm %DOC_TARGET%\PGSLibrary\%PGSLIBRARY_VERISON%\PGSLibrary.dm.html
xcopy /s /y /d %ARPDIR%\PGSuper\Documentation\PGSLibrary\doc\html\* %DOC_TARGET%\PGSLibrary\%PGSLIBRARY_VERISON%\
rmdir /S /Q %DOC_TARGET%\TOGA\%PGSUPER_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\TOGA\%PGSUPER_DOCUMENTATION_VERSION%\
copy %ARPDIR%\PGSuper\TxDOTAgent\Documentation\TOGA\Toga.dm %DOC_TARGET%\TOGA\%PGSUPER_DOCUMENTATION_VERSION%\Toga.dm.html
xcopy /s /y /d %ARPDIR%\PGSuper\TxDOTAgent\Documentation\TOGA\doc\html\* %DOC_TARGET%\TOGA\%PGSUPER_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\TxCADExport\%PGSUPER_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\TxCADExport\%PGSUPER_DOCUMENTATION_VERSION%\
copy %ARPDIR%\PGSuper\TxDOTAgent\Documentation\TxCADExport\TxCADExport.dm %DOC_TARGET%\TxCADExport\%PGSUPER_DOCUMENTATION_VERSION%\TxCADExport.dm.html
xcopy /s /y /d %ARPDIR%\PGSuper\TxDOTAgent\Documentation\TxCADExport\doc\html\* %DOC_TARGET%\TxCADExport\%PGSUPER_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\KDOT\%PGSUPER_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\KDOT\%PGSUPER_DOCUMENTATION_VERSION%\
copy %ARPDIR%\PGSuper\KDOTExport\Documentation\KDOT.dm %DOC_TARGET%\KDOT\%PGSUPER_DOCUMENTATION_VERSION%\KDOT.dm.html
xcopy /s /y /d %ARPDIR%\PGSuper\KDOTExport\Documentation\doc\html\* %DOC_TARGET%\KDOT\%PGSUPER_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\XBRate\%XBRATE_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\XBRate\%XBRATE_DOCUMENTATION_VERSION%\
copy %ARPDIR%\XBeamRate\Documentation\XBRate.dm %DOC_TARGET%\XBRate\%XBRATE_DOCUMENTATION_VERSION%\XBRate.dm.html
xcopy /s /y /d %ARPDIR%\XBeamRate\Documentation\doc\html\* %DOC_TARGET%\XBRate\%XBRATE_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\Barlist\%BARLIST_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\Barlist\%BARLIST_DOCUMENTATION_VERSION%\
copy %ARPDIR%\Barlist\Documentation\Barlist.dm %DOC_TARGET%\Barlist\%BARLIST_DOCUMENTATION_VERSION%\Barlist.dm.html
xcopy /s /y /d %ARPDIR%\Barlist\Documentation\doc\html\* %DOC_TARGET%\Barlist\%BARLIST_DOCUMENTATION_VERSION%\
rmdir /S /Q %DOC_TARGET%\Barlist\Barlist\%BARLIST_DOCUMENTATION_VERSION%\
mkdir %DOC_TARGET%\Barlist\Barlist\%BARLIST_DOCUMENTATION_VERSION%\
copy %ARPDIR%\Barlist\Barlist\Documentation\Barlist.dm %DOC_TARGET%\Barlist\Barlist\%BARLIST_DOCUMENTATION_VERSION%\BarlistDocs.dm.html
xcopy /s /y /d %ARPDIR%\Barlist\Barlist\Documentation\doc\html\* %DOC_TARGET%\Barlist\Barlist\%BARLIST_DOCUMENTATION_VERSION%\
:END
cd %ARPDIR%\BridgeLink