Rev 23 | Rev 3976 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | !if $job2=restore |
2 | !goto next |
||
3 | !endif |
||
4 | wims_deposit=!word 1 of $wims_deposit |
||
5 | selection= |
||
6 | gotlist= |
||
7 | |||
8 | !if . notin $wims_deposit or / isin $wims_deposit or .. isin $wims_deposit |
||
9 | error=bad_file |
||
10 | !exit |
||
11 | !endif |
||
12 | |||
13 | t=!translate . to $ $ in $wims_deposit |
||
14 | format=!word 2 to -1 of $t |
||
15 | format=!translate $ $ to . in $format |
||
16 | !if $format notwordof tgz tar.gz zip |
||
17 | error=bad_file |
||
18 | !exit |
||
19 | !endif |
||
20 | |||
21 | !mexec arch/decompress.sh |
||
22 | :next |
||
23 | new=$wims_sesdir/upload/class |
||
24 | old=log/classes/$wims_class |
||
25 | v=!record 0 of wimshome/$new/version |
||
26 | v=!trim $v |
||
27 | !if $v=$empty or $v notwordof 4 |
||
28 | error=bad_file |
||
29 | !exit |
||
30 | !endif |
||
31 | |||
32 | !for type in new,old |
||
33 | !read scripts/reccnt.proc $type $($type) |
||
34 | t=!defof class_defined in $($type)/.def |
||
35 | !if $t=yes |
||
36 | $(type)_defcnt=1 |
||
37 | !else |
||
38 | $(type)_defcnt=0 |
||
39 | !endif |
||
40 | !next type |
||
41 | new_reccnt=$[$new_reccnt+$new_defcnt+$new_supcnt] |
||
42 | |||
43 | !for rec in $reclist |
||
44 | !if $(new_$(rec)cnt)>0 |
||
45 | gotlist=!append item $rec to $gotlist |
||
46 | !endif |
||
47 | !next rec |
||
48 | |||
49 | !if $gotlist=$empty |
||
50 | error=empty_file |
||
51 | !exit |
||
52 | !endif |
||
53 | |||
54 | serial=!record 0 of $new/serial |
||
55 | serial=!word 1 of $serial |
||
56 | |||
57 | !readdef wimshome/log/classes/$wims_class/neighbors |
||
58 |