Subversion Repositories wimsdev

Rev

Rev 15280 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
15280 obado 1
!read scripts/getindex.proc $modreq
23 reyssat 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
7239 bpr 11
  dir=doc/srctex
7285 bpr 12
  test=!defof common_files in wimshome/public_html/$devdir/$mod/var.proc
7236 bpr 13
!!!FIXME depends on 1
14
  !if $test!=yes
7239 bpr 15
    dir=!append item doc/1/files to $dir
7236 bpr 16
  !else
7239 bpr 17
    dir=!append item doc/files to $dir
7236 bpr 18
  !endif
23 reyssat 19
!endif
20
!if oef isin $cattest
21
 test=!defof common_images in wimshome/public_html/$devdir/$mod/var.proc
22
 !if $test!=yes and datamodule/ notin $test
23
  oefs=!sh cd $devdir/$mod/src\
24
   ls *.oef | grep -v '\*' | sed 's/\.oef$$//' | awk '{print "images/"$$1}'
25
  oefs=!lines2items $oefs
26
  dir=$dir,$oefs
27
 !endif
28
!endif
29
 
30
!bound bin_dir within $dir default $
31
 
32
!if $bin_job=erase and $fname!=$empty
13573 obado 33
  check=!translate internal / to , in $fname
34
  check=!item 1 to -2 of $check
15934 bpr 35
  check1=$(check[1])
13573 obado 36
  check=!nospace $check
37
  check=!translate internal , to / in $check
15934 bpr 38
  !if $check!=$empty and .. notin $fname and \
39
    ($check isitemof $dir or $check1 iswordof slib)
13573 obado 40
    src=cd $devdir/$mod; rm -f $fname
41
    !if ../images/ isin ../$check/
42
      src=$src\
43
      exec imgindex
44
    !endif
45
    !sh $src
46
    successdelete=yes
47
  !else
48
    successdelete=no
23 reyssat 49
  !endif
50
!endif
11441 obado 51
 
10237 bpr 52
success=no
23 reyssat 53
!if $wims_deposit!=$empty and $wims_deposit!=noname.file \
14348 bpr 54
    and $bin_job=deposit and $bin_dir!=$empty \
55
    and / notin $wims_deposit and .. notin $wims_deposit and & notin $wims_deposit
56
  wims_deposit=!nospace $wims_deposit
57
  wims_deposit=!deaccent $wims_deposit
58
  !set test=!filelist $devdir/$mod/images
59
  !set test1=!lowercase $test
60
  !set test2=!lowercase $wims_deposit
61
  !if $test2 isin $test1 and $wims_deposit notin $test
62
    !!files are different only by the case
63
    error=bad_case
64
    !goto list
65
  !endif
66
  src=mkdir $devdir/$mod/$bin_dir\
67
    mv $wims_home/$wims_sesdir/user-deposit $devdir/$mod/$bin_dir/$wims_deposit
68
  !if ../images/ isin ../$bin_dir/
11174 bpr 69
    src=$src\
14348 bpr 70
    cd $devdir/$mod\
71
    exec imgindex
72
  !endif
73
  !sh $src
74
  success=yes
23 reyssat 75
!endif
12043 bpr 76
:list
23 reyssat 77
dirs=!items2words $dir
78
bfiles=!sh cd $devdir/$mod\
14348 bpr 79
  dd=`find $dirs -type f -name '*'| sort | uniq 2>/dev/null`\
80
  [ -z "$$dd" ] && exit\
81
  ls -l $$dd | awk '{print $$9","$$5}'
23 reyssat 82
 
83
bcnt=!linecnt $bfiles
9932 bpr 84
 
85
dest_=$wims_home/public_html/$devdir/$mod
86
 
10235 bpr 87
!if $mkdoc !=$empty
9932 bpr 88
  !sh cd $dest_ ; $wims_home/other/bin/src2def ;
89
!endif
90
 
91
!reset mkdoc