Rev 12502 | Rev 15057 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12502 | Rev 13318 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !bound format within zip,tgz,tar.gz default zip |
1 | !bound format within zip,tgz,tar.gz default zip |
- | 2 | ||
- | 3 | !set max_upload_size=500 |
|
2 | 4 | ||
3 | sel=!listintersect $selection and $reclist |
5 | sel=!listintersect $selection and $reclist |
4 | !default sel=$reclist |
6 | !default sel=$reclist |
5 | !! deleted : don't need to uncheck score and forum by default |
7 | !! deleted : don't need to uncheck score and forum by default |
6 | !! select=!listcomplement score,forum in $sel |
8 | !! select=!listcomplement score,forum in $sel |
Line 15... | Line 17... | ||
15 | dictionary=$module_dir/arch/recdir |
17 | dictionary=$module_dir/arch/recdir |
16 | dirs=!exec translator $selw $dep |
18 | dirs=!exec translator $selw $dep |
17 | dirs=!words2items $dirs |
19 | dirs=!words2items $dirs |
18 | dirs=!listuniq $dirs |
20 | dirs=!listuniq $dirs |
19 | dirs=!items2words $dirs |
21 | dirs=!items2words $dirs |
20 | - | ||
21 | 22 | ||
22 | dictionary=$module_dir/lang/recnames.$moduclass_lang |
23 | dictionary=$module_dir/lang/recnames.$moduclass_lang |
23 | tot=!replace , by , $ in $reclist |
24 | tot=!replace , by , $ in $reclist |
24 | tot=!exec translator $tot |
25 | tot=!exec translator $tot |
25 | fname=!translate internal / to ~ in $wims_class |
26 | fname=!translate internal / to ~ in $wims_class |
26 | !if $class_typename=course |
27 | !if $class_typename=course |
27 | tmpnum_class=!char 1 to -5 of $wims_class |
28 | tmpnum_class=!char 1 to -5 of $wims_class |
28 | !else |
29 | !else |
29 | tmpnum_class=$wims_class |
30 | tmpnum_class=$wims_class |
30 | !endif |
31 | !endif |
- | 32 | ||
31 | fsize=!mexec arch/pack.sh |
33 | fsize=!mexec arch/pack.sh |
- | 34 | ||
- | 35 | !! file size creation is limited by wims.c (var rlimit_fsize) |
|
- | 36 | !! ulimit -f return the system limit to file size creation |
|
- | 37 | !set max_arch_size=!sh ulimit -f |
|
- | 38 | !! ulimit is defined in blocks (1 block = 512B) |
|
- | 39 | !! So, N blocks = N*512/1024 = N/2 Ko |
|
- | 40 | !! nb: there seems to be a bug in MacOS X causing !exec commands reseting ulimit to "unlimited" |
|
- | 41 | !! On Linux systems, it's working as expected. |
|
- | 42 | !if $max_arch_size!=unlimited |
|
- | 43 | max_arch_size=$[ceil($max_arch_size/2)] |
|
- | 44 | !endif |
|
- | 45 | ||
- | 46 | !if $wims_exec_error!=$empty |
|
- | 47 | !if File too large isin $wims_exec_error or Filesize limit exceeded isin $wims_exec_error |
|
- | 48 | error=file_too_large |
|
- | 49 | !endif |
|
- | 50 | !else |
|
32 | wims_class_log=Backup created by $wims_realuser |
51 | wims_class_log=Backup created by $wims_realuser |
- | 52 | !endif |
|
- | 53 | ||
33 | !if $fsize!=$empty |
54 | !if $fsize!=$empty |
34 | fsize=$[ceil($fsize/1024)] |
55 | fsize=$[ceil($fsize/1024)] |
35 | !setdef !set class_backup=$today in wimshome/log/classes/$wims_class/.def |
56 | !setdef !set class_backup=$today in wimshome/log/classes/$wims_class/.def |
36 | !endif |
57 | !endif |