Rev 5267 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !read scripts/edfile.proc |
||
3 | !if $error!=$empty |
||
12490 | bpr | 4 | !exit |
23 | reyssat | 5 | !endif |
6 | |||
7 | !for v in Prev, Next, Upbl |
||
12490 | bpr | 8 | v_=!word 1 of $($v) |
9 | v_=!text select $namechars in $v_ |
||
10 | $v=!char 1 to $namelim of $v_ |
||
23 | reyssat | 11 | !endif |
12 | |||
13 | Dat1=!text select 0123456789 in $Dat1 |
||
14 | Dat2=!text select 0123456789 in $Dat2 |
||
15 | !bound Dat1 between integer 19000101 and 24000101 default 19000101 |
||
16 | !bound Dat2 between integer 19000101 and 24000101 default 24000101 |
||
17 | |||
18 | Titb=!translate internal !$$ to $ $ in $Titb |
||
19 | Keyw=!translate internal !$$ to $ $ in $Keyw |
||
20 | Titb=!singlespace $Titb |
||
21 | Keyw=!singlespace $Keyw |
||
22 | t_=!charcnt $Titb |
||
23 | !if $t_>$titlim |
||
12490 | bpr | 24 | Titb=!detag $Titb |
25 | Titb=!trim $Titb |
||
26 | Titb=!char 1 to $titlim of $Titb |
||
23 | reyssat | 27 | !endif |
28 | !default Titb=?? |
||
29 | Keyw=!detag $Keyw |
||
30 | Keyw=!char 1 to $titlim of $Keyw |
||
31 | |||
32 | today=!char 1 to 8 of $wims_now |
||
33 | |||
34 | !writefile $docdir/$doc/$block.def !set titb=$Titb\ |
||
35 | !set keyw=$Keyw\ |
||
36 | !set datm=$today\ |
||
37 | !set prev=$Prev\ |
||
38 | !set next=$Next\ |
||
39 | !set upbl=$Upbl\ |
||
40 | !set dat1=$Dat1\ |
||
41 | !set dat2=$Dat2\ |
||
42 | \ |
||
43 | !if $$wims_read_parm!=$$empty\ |
||
12490 | bpr | 44 | !goto $$wims_read_parm\ |
23 | reyssat | 45 | !endif\ |
46 | \ |
||
47 | !exit\ |
||
48 | \ |
||
49 | :content |
||
50 | |||
51 | src=$wims_home/$wims_sesdir/doc.src |
||
52 | dest=$wims_home/$Docdir/$doc/src/$block |
||
53 | !mexec scripts/copy.sh |
||
54 | |||
55 | src=$wims_home/$wims_sesdir/doc.def |
||
56 | dest=$wims_home/$Docdir/$doc/$block.def |
||
57 | !mexec scripts/append.sh |
||
58 | !read $docdir/$doc/$block.def |
||
59 | |||
5267 | bpr | 60 | !read index.proc |
23 | reyssat | 61 | |
62 | job=read |
||
63 | !changeto read.proc |