Rev 12429 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2854 | guerimand | 1 | |
2 | !bound comp between 1 and $livret_nbcomp default $empty |
||
3 | !if $comp=$empty |
||
12429 | bpr | 4 | !reset cf_abandon |
5 | job=addcomp |
||
6 | !read addcomp.proc |
||
7 | !exit |
||
2854 | guerimand | 8 | !endif |
9 | |||
10 | tmp=!record $comp of $livret_dir/.comps |
||
11 | !distribute line $tmp into mem_title,mem_nbpalier |
||
12 | mem_palier=!record $palier of $livret_dir/.comp$comp |
||
13 | !distribute line $mem_palier into mem_palier,bla |
||
14 | |||
15 | !if $cf_set!=$empty |
||
12429 | bpr | 16 | donnees=$empty |
17 | !for k=1 to $mem_nbpalier |
||
18 | d=!record $k of $livret_dir/.comp$comp |
||
19 | !if $k!=$palier |
||
20 | donnees=!append line :$d to $donnees |
||
21 | !endif |
||
22 | !next k |
||
23 | !writefile $livret_dir/.comp$comp $donnees |
||
24 | donnees=$empty |
||
25 | !for k=1 to $livret_nbcomp |
||
26 | d=!record $k of $livret_dir/.comps |
||
27 | !if $k=$comp |
||
28 | d=!replace line number 2 by $[$mem_nbpalier-1] in $d |
||
29 | !endif |
||
30 | donnees=!append line :$d to $donnees |
||
31 | !next k |
||
32 | !writefile $livret_dir/.comps $donnees |
||
33 | job=addcomp |
||
34 | !reset cf_set |
||
35 | !read addcomp.proc |
||
15822 | guerimand | 36 | !read proc/mkindexsheet.proc |
5603 | guerimand | 37 | !endif |