]> Creatis software - bbtk.git/blob - packages/toolsbbtk/bbs/boxes/bbMakePackageDoc.bbs
Try to track bug
[bbtk.git] / packages / toolsbbtk / bbs / boxes / bbMakePackageDoc.bbs
1
2 include std
3
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"
7   category "toolsbbtk"
8         
9   new StringRelay package
10
11   input Package package.In "The name of the package"
12   print "== Creating html doc for package $package.Out$ =="
13
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 "
22  
23   new Configuration conf
24   new ConcatStrings path
25   connect conf.DocPath path.In1
26   connect conf.FileSeparator path.In2
27   set path.In3 "bbdoc"
28   connect conf.FileSeparator path.In4   
29   connect package.Out path.In5
30   connect conf.FileSeparator path.In6
31   
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'"
40
41   output Command command2.Out "The command issued"
42
43   new ExecBbiCommand exec
44   connect command2.Out exec.In 
45
46   exec exec
47 endefine