Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
23 reyssat 1
!bound job2 within all,one,first default first
2
 
3
!for t in site,cat,zone,delay
4
 mu_$t=!defof mu_$t in wimshome/log/wims.conf
5
 !default mu_$t=!defof DF_mu_$t in wimshome/src/defaults.conf
6
!next t
7
 
1045 bpr 8
!if $mu_site=random or $mu_site=$empty
2996 bpr 9
 mu_site=!defof downloadsites in wimshome/public_html/bases/sys/downloaddata
23 reyssat 10
 mu_site=!randitem $mu_site
11
!endif
12
 
13
!if $job2=one
14
 !changeto mu/one.proc
15
!endif
16
 
17
!default musite=$mu_site
18
!default mucat=$mu_cat
19
!default muzone=$mu_zone
20
!default mudelay=$mu_delay
21
 
22
!if $muauto notwordof check update install
23
 muauto=
24
 !exit
25
!endif
26
 
27
mu_add=mu_site=$musite\
28
mu_cat=$mucat\
29
mu_zone=$muzone\
30
mu_delay=$mudelay\
31
mu_auto=$muauto\
971 bpr 32
w_wims_session=$wims_session\
33
mu_ref=$wims_ref_name
23 reyssat 34
auto=$muauto
35
muauto=
36
 
37
!if $auto=check
38
 modupdate=!sh $wims_home/bin/modupdate
39
!else
40
 !appendfile wimshome/log/wimslogd.exec scripttest=yes\
41
wims_home=$wims_home\
42
w_wims_version=$wims_version\
43
w_mu_add="$mu_add"\
44
export scripttest wims_home w_wims_version w_mu_add\
45
$wims_home/bin/modupdate mail
46
!endif
47
check=!nonempty lines $modupdate
48
n=!linecnt $check
49
!reset mode,modif,new
50
 
51
!for i=1 to $n
52
 l=!line $i of $check
53
 !if updated iswordof $l
54
  mode=modif
55
 !endif
56
 !if added iswordof $l
57
  mode=new
58
 !endif
59
 t=!itemcnt $l
60
 !if / isin $l and $t=3 and $mode!=$empty
61
  $mode=!append line $l to $($mode)
62
 !endif
63
!next i
64
 
65
modif=!translate internal /~ to ,/ in $modif
66
new=!translate internal /~ to ,/ in $new
67
modifcnt=!linecnt $modif
68
newcnt=!linecnt $new
69