Subversion Repositories wimsdev

Rev

Rev 3335 | Rev 7236 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
!read scripts/getindex $modreq
2
!if $title=$empty and $inddef=$empty
3
 job=modname
4
 modreq=
5
 !changeto $job.proc
6
!endif
7
 
6222 bpr 8
dir=binary,data,images,help,anstype,slib
23 reyssat 9
cattest=!module category devel/$auth_login/$mod
10
!if document isin $cattest
11
 dir=$dir,doc/1/files
12
!endif
13
!if oef isin $cattest
14
 test=!defof common_images in wimshome/public_html/$devdir/$mod/var.proc
15
 !if $test!=yes and datamodule/ notin $test
16
  oefs=!sh cd $devdir/$mod/src\
17
   ls *.oef | grep -v '\*' | sed 's/\.oef$$//' | awk '{print "images/"$$1}'
18
  oefs=!lines2items $oefs
19
  dir=$dir,$oefs
20
 !endif
21
!endif
22
 
23
!bound bin_dir within $dir default $
24
 
25
!if $bin_job=erase and $fname!=$empty
26
 check=!translate internal / to , in $fname
27
 check=!item 1 to -2 of $check
28
 check=!nospace $check
29
 check=!translate internal , to / in $check
30
 !if $check!=$empty and $check isitemof $dir and .. notin $fname
31
  src=cd $devdir/$mod; rm -f $fname
32
  !if ../images/ isin ../$check/
33
   src=$src\
34
    exec imgindex
35
  !endif
36
  !sh $src
37
 !endif
38
!endif
39
 
40
!if $wims_deposit!=$empty and $wims_deposit!=noname.file \
41
	and $bin_job=deposit and $bin_dir!=$empty \
42
	and / notin $wims_deposit and .. notin $wims_deposit
43
 src=mkdir $devdir/$mod/$bin_dir\
44
   mv $wims_home/$wims_sesdir/user-deposit $devdir/$mod/$bin_dir/$wims_deposit
45
 !if ../images/ isin ../$bin_dir/
46
  src=$src\
47
   cd $devdir/$mod\
48
   exec imgindex
49
 !endif
50
 !sh $src
51
!endif
52
 
53
dirs=!items2words $dir
54
bfiles=!sh cd $devdir/$mod\
55
	dd=`find $dirs -type f -name '*'| sort | uniq  2>/dev/null`\
56
	[ -z "$$dd" ] && exit\
57
	ls -l $$dd | awk '{print $$9","$$5}'
58
 
59
bcnt=!linecnt $bfiles