Rev 2286 | Rev 7239 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7235 | bpr | 1 | !!! test if common_files=yes |
2 | !read $Docdir/.def |
||
3 | doc_=$doc/ |
||
4 | !if $common_files=yes |
||
5 | doc_= |
||
6 | !endif |
||
23 | reyssat | 7 | !if $job2=deposit and $wims_deposit!=$empty \ |
8 | and / notin $wims_deposit and .. notin $wims_deposit |
||
7235 | bpr | 9 | !sh mkdir -p $wims_home/$Docdir/$(doc_)files\ |
10 | mv $wims_home/$wims_sesdir/user-deposit $wims_home/$Docdir/$(doc_)files/$wims_deposit\ |
||
23 | reyssat | 11 | cd $wims_home/$wims_sesdir\ |
12 | mkdir -p getfile\ |
||
13 | cd getfile\ |
||
14 | rm -f doc\ |
||
15 | ln -s $wims_home/$filelink/files doc |
||
16 | !read quota.proc |
||
17 | !if $quota_free<0 |
||
7235 | bpr | 18 | !sh rm -f $wims_home/$Docdir/$(doc_)files/$wims_deposit |
23 | reyssat | 19 | error=quota_file |
20 | !endif |
||
21 | !endif |
||
22 | |||
23 | !if erase isin $job2 and .. notin $job2 |
||
24 | erase=!item 2 of $job2 |
||
7235 | bpr | 25 | !sh rm -f $wims_home/$Docdir/$(doc_)files/$erase |
23 | reyssat | 26 | !endif |
27 | |||
7235 | bpr | 28 | flist=!filelist $wims_home/$Docdir/$(doc_)files |
23 | reyssat | 29 | flist=!words2items $flist |
889 | bpr | 30 | f1=$wims_deposit |
31 | !if $f1 notin $flist or $f1= |
||
32 | f1=!item 1 of $flist |
||
33 | !endif |
||
23 | reyssat | 34 | !read quota.proc |
35 |