Rev 11451 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
15280 | obado | 2 | !read scripts/getindex.proc $mod |
23 | reyssat | 3 | !if $title=$empty |
4 | job=modname |
||
5 | !changeto modname.proc |
||
6 | !endif |
||
7 | |||
8 | allowchar=/.-_$alnum |
||
9 | fname=!word 1 of $fname |
||
10 | fname=!text select $allowchar in $fname |
||
11 | c=!char 1 of $fname |
||
12 | !if $c=. or $c=/ or .. isin $fname |
||
13 | !goto badname |
||
14 | !endif |
||
15280 | obado | 15 | !read files.proc |
23 | reyssat | 16 | !if $fname notitemof $files |
17 | :badname |
||
18 | error=bad_fname |
||
19 | lastfname=$fname |
||
20 | job=flist |
||
21 | !changeto flist.proc |
||
22 | !endif |
||
23 | |||
24 | !if $fname=$empty |
||
25 | job=flist |
||
26 | !changeto $job.proc |
||
27 | !endif |
||
28 | |||
29 | moddir=modules/devel/$auth_login/$mod |
||
30 | !if ../src/ isin ../$fname |
||
31 | mkdef=src2def 2>/dev/null |
||
32 | !else |
||
33 | !reset mkdef |
||
34 | !endif |
||
35 | test=!sh cd $moddir; ls |
||
36 | !sh cd $moddir\ |
||
37 | mkdir -p .deleted\ |
||
38 | mv $fname .deleted\ |
||
39 | $mkdef |
||
11451 | bpr | 40 | !if .oef$ $ isin $(fname)$ $ |
41 | im=!replace internal src by images in $fname |
||
42 | im=!replace internal .oef by in $im |
||
43 | testim=yes |
||
44 | !endif |
||
45 | !if $testim=yes |
||
46 | im=!replace internal src by images in $fname |
||
47 | im=!replace internal .oef by in $im |
||
48 | !sh cd $moddir\ |
||
49 | if [ -d $im ]; then mkdir -p .deleted/$im; mv $im/* .deleted/$im; fi; |
||
50 | !endif |
||
23 | reyssat | 51 | |
52 | wims_module_log=delete $mod/$fname |
||
53 |