Subversion Repositories wimsdev

Rev

Rev 11134 | Rev 17871 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9679 guerimand 1
!! duplicate a sheet
2
 
3
!if $scnt>=$max_sheets
12701 bpr 4
  error=bad_maxsheets
5
  !reset job wims_ariane
6
  !changeto var.proc
9679 guerimand 7
!endif
8
!bound sheet between 1 and $scnt default $empty
9
 
10
!if $sheet=$empty
12701 bpr 11
  error=bad_sheet
12
  !reset job wims_ariane
13
  !changeto var.proc
9679 guerimand 14
!endif
15
 
9688 guerimand 16
exocnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$sheet
17
!if $exocnt=0
12701 bpr 18
  !reset job wims_ariane
19
  !changeto var.proc
9688 guerimand 20
!endif
9679 guerimand 21
 
22
!sh cd $wims_home/log/classes/$wims_class/sheets/\
23
cp .sheet$sheet .sheet$[$scnt+1]
24
 
25
p=!record $sheet of wimshome/log/classes/$wims_class/sheets/.sheets
26
p=!replace line number 1 by 0 in $p
27
 
28
!appendfile wimshome/log/classes/$wims_class/sheets/.sheets :$p
29
 
11134 guerimand 30
!! --- copy severity of the sheet:
31
fsev=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity
32
sev=!line $[$sheet+1] of $fsev
33
!if $sev!=$empty
12701 bpr 34
  n=!linecnt $fsev
35
  !while $n<$scnt+1
36
    fsev=$fsev\
11134 guerimand 37
 
12701 bpr 38
    !increase n
39
  !endwhile
40
  fsev=!append line $sev to $fsev
41
  !writefile wimshome/log/classes/$wims_class/sheets/.severity $fsev
11134 guerimand 42
!endif
43
!! ---
44
 
9679 guerimand 45
scnt=$[$scnt+1]
46
sheet=$scnt
47
message=$name_duplicateok
10339 bpr 48
!reset job wims_ariane
49
!changeto var.proc