Rev 7239 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7239 | Rev 12490 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | !if $common_files=yes |
4 | !if $common_files=yes |
5 |
|
5 | doc_= |
6 | !endif |
6 | !endif |
7 | !if $job2=deposit and $wims_deposit!=$empty \ |
7 | !if $job2=deposit and $wims_deposit!=$empty \ |
8 |
|
8 | and / notin $wims_deposit and .. notin $wims_deposit |
9 | !sh mkdir -p $wims_home/$Docdir/$(doc_)files\ |
9 | !sh mkdir -p $wims_home/$Docdir/$(doc_)files\ |
10 | mv $wims_home/$wims_sesdir/user-deposit $wims_home/$Docdir/$(doc_)files/$wims_deposit\ |
10 | mv $wims_home/$wims_sesdir/user-deposit $wims_home/$Docdir/$(doc_)files/$wims_deposit\ |
11 | cd $wims_home/$wims_sesdir\ |
11 | cd $wims_home/$wims_sesdir\ |
12 | mkdir -p getfile\ |
12 | mkdir -p getfile\ |
13 | cd getfile\ |
13 | cd getfile\ |
14 | rm -f doc\ |
14 | rm -f doc\ |
15 | ln -s $wims_home/$filelink/files doc |
15 | ln -s $wims_home/$filelink/files doc |
16 | !read quota.proc |
16 | !read quota.proc |
17 | !if $quota_free<0 |
17 | !if $quota_free<0 |
18 | !sh rm -f $wims_home/$Docdir/$(doc_)files/$wims_deposit |
18 | !sh rm -f $wims_home/$Docdir/$(doc_)files/$wims_deposit |
19 | error=quota_file |
19 | error=quota_file |
20 | !endif |
20 | !endif |
21 | !endif |
21 | !endif |
22 | 22 | ||
23 | !if erase isin $job2 and .. notin $job2 |
23 | !if erase isin $job2 and .. notin $job2 |
24 | erase=!item 2 of $job2 |
24 | erase=!item 2 of $job2 |
25 | !sh rm -f $wims_home/$Docdir/$(doc_)files/$erase |
25 | !sh rm -f $wims_home/$Docdir/$(doc_)files/$erase |
26 | !endif |
26 | !endif |
27 | 27 | ||
28 | flist=!filelist $wims_home/$Docdir/$(doc_)files |
28 | flist=!filelist $wims_home/$Docdir/$(doc_)files |
29 | flist=!words2items $flist |
29 | flist=!words2items $flist |
30 | f1=$wims_deposit |
30 | f1=$wims_deposit |
31 | !if $f1 notin $flist or $f1= |
31 | !if $f1 notin $flist or $f1= |
32 | f1=!item 1 of $flist |
32 | f1=!item 1 of $flist |
33 | !endif |
33 | !endif |
34 | !read quota.proc |
34 | !read quota.proc |
35 | - |