Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | listfile=model/list |
||
3 | !reset list_exists |
||
4 | !read $listfile |
||
5 | !if $list_exists=yes |
||
6 | !exit |
||
7 | !endif |
||
8 | |||
9 | src=!sh cd modules/$module/model/src; ls *.oef | sed 's/.oef$$//' |
||
10 | src=!words2items $src |
||
11 | |||
12 | !writefile $listfile |
||
13 | types= |
||
14 | !for f in $src |
||
15 | def=!record 0 of model/src/$f.oef |
||
16 | type=!getopt type in $def |
||
17 | !if $type!=$empty |
||
18 | !if $type notitemof $types |
||
19 | types=!append item $type to $types |
||
20 | type_$type= |
||
21 | !endif |
||
22 | type_$type=!append item $f to $(type_$type) |
||
23 | desc=!record 1 of model/src/$f.oef |
||
24 | desc=!line 1 of $desc |
||
25 | tit= |
||
26 | !for i=2 to 8 |
||
27 | r=!record $i of model/src/$f.oef |
||
28 | r=!trim $r |
||
29 | c=!char 1 of $r |
||
30 | !if \ = $c and +++\title isin +++$r |
||
31 | tit=!embraced extract $r |
||
32 | !break |
||
33 | !endif |
||
34 | !next i |
||
35 | !appendfile $listfile tit_$f=$tit\ |
||
36 | desc_$f=$desc |
||
37 | !endif |
||
38 | !next f |
||
39 | |||
40 | !appendfile $listfile list_exists=yes\ |
||
41 | types=$types |
||
42 | |||
43 | !for t in $types |
||
44 | !appendfile $listfile type_$t=$(type_$t) |
||
45 | !next t |
||
46 | |||
47 | !read $listfile |
||
48 |