4 define MakePackageDoc toolsbbtk
5 description "Creates the html documentation of a package. The doc is generated at the 'canonical' location. Works both for a build tree or an installed toolkit."
6 author "laurent.guigues at creatis.insa-lyon.fr"
9 new StringRelay package
11 input Package package.In "The name of the package"
12 print "== Creating html doc for package $package.Out$ =="
14 new ConcatStrings command
15 set command.In1 "exec freeze; include "
16 connect package.Out command.In2
17 set command.In3 "; include "
18 connect package.Out command.In4
19 set command.In5 "-appli; graph "
20 connect package.Out command.In6
21 set command.In7 " 0 0 "
23 new Configuration conf
24 new ConcatStrings path
25 connect conf.DocPath path.In1
26 connect conf.FileSeparator path.In2
28 connect conf.FileSeparator path.In4
29 connect package.Out path.In5
30 connect conf.FileSeparator path.In6
32 new ConcatStrings command2
33 connect command.Out command2.In1
34 connect path.Out command2.In2
35 set command2.In3 "index.html "
36 connect path.Out command2.In4
37 set command2.In5 "header.html 'Package "
38 connect package.Out command2.In6
39 set command2.In7 " documentation'"
41 output Command command2.Out "The command issued"
43 new ExecBbiCommand exec
44 connect command2.Out exec.In