Rev 2790 | Rev 12053 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3912 | bpr | 1 | !bound comp between integer 1 and $livret_nbcomp default 1 |
1319 | guerimand | 2 | |
1845 | guerimand | 3 | t=!record $comp of $livret_dir/.comps |
1319 | guerimand | 4 | !distribute line $t into name_comp,nbpalier_comp |
5 | !bound palier between 1 and $nbpalier_comp default 1 |
||
1845 | guerimand | 6 | t=!record $palier of $livret_dir/.comp$comp |
1319 | guerimand | 7 | !distribute lines $t into name_palier,eold |
8 | |||
9 | ltsheets=!listintersect $asheets and $ltsheets |
||
10 | !if $ltsheets=$empty |
||
11 | ltsheets=$asheets |
||
12 | !endif |
||
13 | !if $cf_set!=$empty |
||
2790 | guerimand | 14 | !if $echoose=$empty |
15 | echoose=$eold |
||
16 | !endif |
||
1319 | guerimand | 17 | eopt=!listintersect $eopt and $optionlist |
18 | cf_title=!trim $cf_title |
||
19 | !default cf_title=$name_palier |
||
20 | donnees=$empty |
||
21 | !for k=1 to $nbpalier_comp |
||
22 | !if $k!=$palier |
||
1845 | guerimand | 23 | d=!record $k of $livret_dir/.comp$comp |
1319 | guerimand | 24 | !else |
25 | d=$cf_title\ |
||
26 | $echoose |
||
27 | !endif |
||
28 | donnees=!append line :$d to $donnees |
||
29 | !next k |
||
1845 | guerimand | 30 | !writefile $livret_dir/.comp$comp $donnees |
1319 | guerimand | 31 | !reset cf_set |
32 | job=addcomp |
||
33 | !read $job.proc |
||
34 | !endif |