Rev 13663 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | #Make documents index. |
15526 | guerimand | 2 | !! Careful docdir and Docdir variables have to be defined before use of the script |
3 | !! |
||
20 | reyssat | 4 | |
5 | !writefile $docdir/.index |
||
6 | dlist=!filelist $wims_home/$Docdir |
||
7 | dlist=!words2items $dlist |
||
8 | !for d in $dlist |
||
13663 | bpr | 9 | !if . notin $d |
10 | defs=!defof tit\ |
||
20 | reyssat | 11 | author\ |
12 | email\ |
||
13 | copyright\ |
||
14 | docopen\ |
||
15 | dlang in $docdir/$d/.def |
||
13663 | bpr | 16 | t_=!line 1 of $defs |
17 | t_=!trim $t_ |
||
18 | !if $t_!=$empty |
||
19 | a_=!defof author in $docdir/$d/.def |
||
20 | a_=!items2words $a_ |
||
21 | a_=!singlespace $a_ |
||
22 | a_=!deaccent $a_ |
||
23 | a_=!lower $a_ |
||
24 | n=!linecnt $defs |
||
25 | !if $n<6 |
||
26 | defs=$defs\ |
||
20 | reyssat | 27 | all |
13663 | bpr | 28 | !endif |
29 | desc=!defof desc in $docdir/$d/.def |
||
30 | !appendfile $docdir/.index :$d\ |
||
20 | reyssat | 31 | $defs\ |
1499 | bpr | 32 | $a_\ |
33 | $desc |
||
13663 | bpr | 34 | !endif |
20 | reyssat | 35 | !endif |
36 | !next d |