Rev 7239 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7235 | bpr | 1 | !!! test if common_files=yes |
7239 | bpr | 2 | !read wimshome/$Docdir/.def |
7235 | bpr | 3 | doc_=$doc/ |
4 | !if $common_files=yes |
||
12490 | bpr | 5 | doc_= |
7235 | bpr | 6 | !endif |
23 | reyssat | 7 | !if $job2=deposit and $wims_deposit!=$empty \ |
12490 | bpr | 8 | and / notin $wims_deposit and .. notin $wims_deposit |
9 | !sh mkdir -p $wims_home/$Docdir/$(doc_)files\ |
||
7235 | bpr | 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 |
||
12490 | bpr | 16 | !read quota.proc |
17 | !if $quota_free<0 |
||
18 | !sh rm -f $wims_home/$Docdir/$(doc_)files/$wims_deposit |
||
19 | error=quota_file |
||
20 | !endif |
||
23 | reyssat | 21 | !endif |
22 | |||
23 | !if erase isin $job2 and .. notin $job2 |
||
12490 | bpr | 24 | erase=!item 2 of $job2 |
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 |