|
1 REM Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. |
|
2 REM This component and the accompanying materials are made available under the terms of the License |
|
3 REM "Eclipse Public License v1.0" which accompanies this distribution, |
|
4 REM and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
5 REM Initial Contributors: |
|
6 REM Nokia Corporation - initial contribution. |
|
7 REM Contributors: |
|
8 echo off |
|
9 set input=%1 |
|
10 if "%1" == "" GOTO ARGMISSING |
|
11 |
|
12 set sys_def_path=%1 |
|
13 |
|
14 set python_home=%sbs_home%\win32\python252 |
|
15 set PATH=%python_home%;%PATH% |
|
16 |
|
17 set input=%EPOCROOT%epoc32\release\doxygen\dita |
|
18 set maps_output=%EPOCROOT%epoc32\release\doxygen\maps |
|
19 set dita_output=%EPOCROOT%epoc32\release\doxygen\ditareference |
|
20 |
|
21 set ANT_OPTS=-Xmx512m |
|
22 set ant_home=%sbs_home%\ant |
|
23 set ant_path=%ant_home%\bin\ant.bat |
|
24 set build_file=%sbs_home%\CxxApiRef2Dita\build.xml |
|
25 |
|
26 set map_creator_path=%sbs_home%\bin\MapCreator\mapcreator.exe |
|
27 set component_map_creator_path=%sbs_home%\python\doxygen\component_map_creator.py |
|
28 set guidiser_path=%sbs_home%\python\doxygen\guidiser.py |
|
29 set filerenamer_path=%sbs_home%\python\doxygen\filerenamer.py |
|
30 set index_creator_path=%sbs_home%\python\doxygen\indexcreator.py |
|
31 |
|
32 |
|
33 md %maps_output% |
|
34 md %dita_output% |
|
35 call %map_creator_path% %sys_def_path% -o %maps_output%\toc.ditamap |
|
36 call python %component_map_creator_path% %EPOCROOT%epoc32\build %maps_output% |
|
37 rem call python %index_creator_path% %input% %output%\maps\index.ditamap |
|
38 |
|
39 call %ant_path% -f %build_file% -Dinput="%input%" -Doutput="%dita_output%" |
|
40 |
|
41 call python %guidiser_path% %maps_output% |
|
42 call python %guidiser_path% %input% |
|
43 call python %guidiser_path% %dita_output%\transformed |
|
44 |
|
45 call python %filerenamer_path% %maps_output% |
|
46 call python %filerenamer_path% %input% |
|
47 call python %filerenamer_path% %dita_output%\transformed |
|
48 |
|
49 |
|
50 goto EOF |
|
51 |
|
52 :ARGMISSING |
|
53 echo Error Arguments missing were 1.system_defintion.xml path:[%1] |
|
54 echo EPOC source tree os the directory containing v3 system definition |
|
55 echo and package definitions |
|
56 goto EOF |
|
57 |
|
58 :EOF |