#!/bin/sh # Copyright for the Uniform Repository Service (c) 1995, 1996, 1997, # 1998, # by Gerald Banon. All rights reserved. # Version 1.1 # update@z a1=$1 umask 2 col=../../../../.. serv=dpi.inpe.br/banon/1995/08.08.00.00 echo "" cp=`pwd` # cp (current path) cd $col/.. hp=`pwd` # hp (home path) cd $cp if test -f .setenv/last_change then cat address | sort -u -o address comm -23 address .setenv/last_change >.t/df # difference comm -23 .setenv/last_change address >>.t/df cat .t/df | egrep -v '^[ ]*$' >.t/ax # cut blank lines cat .t/ax >.t/df if test -s .t/df then cat .t/df | sed 's/,.*//' | sort -u | \ sed 's/^ *// s/ /_/' >.t/ln # >.t/ln (last name) fi fi cat $a1 >.t/i1 rm -f .t/add while test -s .t/i1 do cat .t/i1 | sed -n '1p' >.t/rp set `cat .t/rp`; rp=$1 # rp if test -d $col/$rp/bib then # first repository generation # > find \ $col/$rp/bib -newer $col/$rp/.reserved/last_change -print >.t/ax if test -s .t/ax then set yes; update_bib=$1 # echo 1 else if test -s .t/ln then ls -d $col/$rp/bib/* | egrep -f .t/ln >.t/ax if test -s .t/ax then set yes; update_bib=$1 # echo 2 else ls -dt \ $col/$rp $col/$rp/download $col/$rp/.reserved/last_change >.t/ax 2>.t/bx cat .t/ax | \ sed '/.reserved\/last_change/,$d' >.t/bx if test -s .t/bx then set yes; update_bib=$1 # echo 3 else set no; update_bib=$1 # echo 4 fi fi else ls -dt \ $col/$rp $col/$rp/download $col/$rp/.reserved/last_change >.t/ax 2>.t/bx cat .t/ax | \ sed '/.reserved\/last_change/,$d' >.t/bx if test -s .t/bx then set yes; update_bib=$1 # echo 5 else set no; update_bib=$1 # echo 6 fi fi fi find \ $col/$rp/bib/.@AV.html -newer $col/$rp/.reserved/last_change -print \ >.t/ax 2>.t/bx if \ ( test -s .t/ax || test ! -f $col/$rp/bib/.@AV.html ) && \ test -f ../$col/$serv/not_sent/.setenv/library_location then set yes; update_bib=$1 fi # new link(s) find \ $col/$rp/.reserved/link -newer $col/$rp/.reserved/last_change -print \ >.t/ax 2>.t/bx if test -s .t/ax then set yes; new_link=$1 else set no; new_link=$1 fi find \ $col/$rp/doc -follow -newer $col/$rp/.reserved/last_change -print >.t/ax if test -s .t/ax then set yes; update_doc=$1 else set no; update_doc=$1 fi find \ $col/$rp/bib/*/.h -newer $col/$rp/.reserved/last_change -print \ >.t/ax 2>.t/bx if test -s .t/ax then # see sr set no; update_version=$1 else set yes; update_version=$1 fi # echo update_bib = $update_bib # echo update_doc = $update_doc # echo update_version = $update_version if test $update_bib = yes || test $update_doc = yes || \ test ! -f .setenv/last_change || test $new_link = yes then echo updating $rp/bib ... if test $update_doc = yes then # update the .reserved/ref file ------------ # if something in the doc directory has been changed find $col/$rp/doc -follow -print >.t/find cat .t/find | egrep '\.wk\.Z$' | \ awk '{ printf "cp %s .t/tmp/%s.Z; '\ 'chmod +w .t/tmp/%s.Z; '\ 'rm -f .t/tmp/%s; '\ 'uncompress .t/tmp/%s.Z; '\ 'cat .t/tmp/%s >>.t/f1\n", $1, NR, NR, NR, NR, NR }' >.t/d1 rm -f .t/f1 if test -s .t/d1 then mkdir -p .t/tmp chmod g+s .t/tmp chmod +x .t/d1 .t/d1 # cp; uncompress; # cat >>.t/f1 fi cat .t/find | \ egrep '\.html$|\.ref$|\.wk$|\.tcl$|\.rtf$' | sed 's/$/" \\/' | \ sed 's/^/"/' >.t/e1 # with some special character we must write cat "../A&B" if test -s .t/e1 then echo 'cat \' >.t/e2 echo '>>.t/f1' >.t/e3 cat .t/e2 .t/e1 .t/e3 >.t/e4 chmod +x .t/e4 .t/e4 # cat >>.t/f1 fi if test -f .t/f1 then # chmod -f 666 $col/$rp/ref # migration # (April 12) cat .t/f1 | \ egrep '../../../col/' | \ sed -n '/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\/col\//p' | \ sed 's/^.*\.\.\/\.\.\/\.\.\/\.\.\/\.\.\/\.\.\/col\///' | \ awk -F/ '{ printf "%s/%s/%s/%s\n", $1, $2, $3, $4 }' >.t/f2 cat .t/f1 | \ egrep 'NAME=repository_rel *VALUE="' | \ sed 's/^.*NAME=repository_rel *VALUE="// s/"/\//' | \ awk -F/ '{ printf "%s/%s/%s/%s\n", $1, $2, $3, $4 }' >>.t/f2 cat .t/f2 | sort -u | \ grep -v $rp | grep -v '//' \ >$col/$rp/.reserved/ref # // because $i can be void # cat .t/f2 | sort -u | \ #grep -v $rp | grep -v '//' | \ #awk '{ printf "%s\n", $1, $1 }' \ #>.t/f3 # // because $i can be void #cat >$col/$rp/.reserved/ref < #Relative references #
#`cat .t/f3`
#
#end_ref else echo x | sed '$d' >$col/$rp/.reserved/ref fi # update the .reserved/ref file -------- end fi # if test $update_bib = yes || test $update_doc = yes || \ #test ! -f .setenv/last_change # then # update the bib directory ------------ # if something in the bib or doc directories has been changed ls -t $col//$rp/bib >.t/keylist # keylist # because of key changes and sr, we can have more than one key # just the newest must be kept cat .t/keylist | sed -n '1p' >.t/ky set `cat .t/ky`; ky=$1 # ky cat .t/keylist | \ sed '1d' >.t/re # re (rest) if test -s .t/re then # delete the old keys cat .t/re | \ sed 's!^!chmod -fR +w '$col'/'$rp'/bib/!' >.t/zz5 chmod +x .t/zz5 .t/zz5 # chmod -fR +w cat .t/re | \ sed 's!^!rm -fr '$col'/'$rp'/bib/!' >.t/zz6 chmod +x .t/zz6 .t/zz6 # rm -fr fi # migration (May 7, 1996) echo $ky | grep ':' >.t/ax if test -s .t/ax then echo $ky | sed 's/:/=/g' >.t/newky chmod -f 775 $col/$rp/bib chmod -f 775 $col/$rp/bib/$ky mv \ $col/$rp/bib/$ky $col/$rp/bib/`cat .t/newky` cat .t/newky >.t/ky set `cat .t/ky`; ky=$1 fi # test the consistency between the filename directory in the bib directory # and the citation key in a.bib. Everything should be like the citation # key in a.bib # migration - november 4, 1998 if test -d $col/dpi.inpe.br/banon/1998/10.21.10.07 && \ test -d $col/dpi.inpe.br/banon/1997/10.21.17.24 then # use the urlib style for the a.bib cat $col/$rp/bib/$ky/a.bib >.t/bibStyle.bib ../doc/update@z.tcl cat .t/urlib.bib | grep '^[ ]*@' >.t/ax if test -s .t/ax then cat .t/urlib.bib >$col/$rp/bib/$ky/a.bib fi fi # migration - november 4, 1998 - end cat $col/$rp/bib/$ky/a.bib | grep '^[ ]*@' | \ sed 's/^.*{//' | sed 's/,$//' | sed 's/:/=/g' >.t/ck # ck (citation key) set `cat .t/ck`; ck=$1 # ck if test $ck != $ky then # not equal mv $col/$rp/bib/$ky $col/$rp/bib/$ck fi # make up the new last_change content --------------- # make up $version -------- echo $ck | grep '==' >.t/ax if test -s .t/ax then set yes; work_in_progress=$1 else set no; work_in_progress=$1 fi if test -f domainname then dom=`cat domainname` # dom (domain name) else dom=`domainname` # dom (domain name) fi dw=$dom:`whoami` # dw cat $col/$rp/.reserved/last_change | \ sed -n '1p' >.t/ov # >.t/ov (old version) set `cat .t/ov`; ov=$1 # ov # above, ov must contain only the first word because of old operational # system # initialization cat $col/$rp/.reserved/last_change | \ egrep '[^:]*:[^:]*:[^:]*:[^:]' >.t/in # >.t/in if test -s .t/in then set no; initialization=$1 else set yes; initialization=$1 fi # initialization end if test $update_version = yes && \ ( test $update_doc = yes || test $initialization = yes || \ ( test $update_bib = yes && test $work_in_progress = yes )) then # make up the new version stamp set \ `date | awk '{ print $6 }'`; year=$1 set \ `echo $dw:$year`:`date '+%m.%d.%H.%M.%S'`; se=$1 # set \ # `echo $dw`:`date '+%Y:%m.%d.%H.%M.%S'`; se=$1 # only solaris 2.5 set `echo $se | sed 's/\...$//'`; mn=$1 if test $mn = $ov then if test $se = $ov then sleep 1 set \ `date | awk '{ print $6 }'`; year=$1 set \ `echo $dw:$year`:`date '+%m.%d.%H.%M.%S'`; se=$1 # set \ # `echo $dw`:`date '+%Y:%m.%d.%H.%M.%S'`; se=$1 # only solaris 2.5 set \ `echo $se | sed 's/\...$//'`; mn=$1 if test $mn = $ov then set \ `echo $se`; version=$1 else set \ `echo $mn`; version=$1 fi else set `echo $se`; version=$1 fi else set `echo $mn`; version=$1 fi else set `cat .t/ov`; version=$1' '$2 fi # make up $version ---- end # original # cat .t/in | grep original >.t/ax # if \ ( test $initialization = yes || test ! -s .t/ax ) && \ test $work_in_progress = no if test $work_in_progress = no then set \ `echo $version | sed 's/$/ (original)/'`; version=$1' '$2 fi # original end echo $version >.t/bx cat .t/in >>.t/bx # initialization cat .t/bx | \ uniq | sed -n '1,10p' >.t/last_change_new # returning to a work-in-progress if test $work_in_progress = yes then cat .t/last_change_new | \ sed s'/ (original)//' >.t/ax cat .t/ax >.t/last_change_new fi # returning to a work-in-progress end # make up the new last_change content ----------- end # ------------------------------------------------------------------------ cd $col/$rp/bib/$ck # level 7 from URLib chmod -f 777 . # migration (April 12) mkdir .t # migration 15/9/97 cat a.bib | \ sed 's/^[ ]*tagfile = / targetfile = /' >.t/ax cat .t/ax >a.bib # migration end if \ test -f ../$col/$serv/not_sent/.setenv/library_location # for link then ll=\ `cat ../$col/$serv/not_sent/.setenv/library_location` # ll (library location) pt=\ `echo $ll | awk -F: '{ print $NF }'` # pt (port) fi # find the extension ($ex) ------ if \ test -f ../$col/$serv/not_sent/.setenv/library_location then # library location for the host # pn1=$ll pn2=`echo $ll | sed 's/\//./g'` # file name should be less than or equal to 99 (limit imposed by tar) echo $ck | sed 's/==/=xxxx=/' >.t/ct echo $col/$rp/bib/`cat .t/ct`/.x/x.$pn2 | \ awk '{ print substr($1, 1, 99) }' | awk -F/ '{ print $NF }' | \ sed 's/^x.//' >.t/ex # .t/ex (extension) set `cat .t/ex`; ex=$1 # ex fi # find the extension ($ex) -- end if test $update_bib = yes || test ! -f .setenv/last_change then # make up the files in the .b directory # (used for creating the index.bib file) if test ! -d .b then mkdir .b # chmod o+w .b else chmod -fR o-w .b # migration (March 17, 1997) fi # make up the a. file from a.bib without blank line(s) and the line with } ../$col/$serv/doc/formatbib a.bib >.t/a.bib cat .t/a.bib | sed '/^[ ]*$/d' | \ sed -n '/^[ ]*@/,/^[ ]*}/p' | sed '/^[ ]*}/d' >.b/a. # size # compute the number of Kbytes if \ test $update_doc = yes || test ! -f .reserved/size then ls -l ../.. | grep 'doc ->' >.t/ax if test -s .t/ax then # a link doc=\ `cat .t/ax | sed 's/^.* doc ->//'` du -s $doc | \ awk '{ print $1 }' >.t/sz1 # >.t/sz1 (size em blocks) else # no link du -s ../../doc | \ awk '{ print $1 }' >.t/sz1 # >.t/sz1 (size em blocks) fi mkdir .t/unit echo \ `cat .t/sz1` / `du .t/unit | awk '{ print $1 }'` | \ bc >.t/sz2 # >.t/sz2 (size em Kbytes) echo \ `cat .t/sz2`' Kbytes' >../../.reserved/size fi set `cat ../../.reserved/size`; szkb=$1 echo \ " size = "'"'$szkb' Kbytes"', >>.b/a. # version cd $cp # level 0 from not_sent cat .t/last_change_new | \ sed -n '1p' | grep original >.t/ax if test -s .t/ax then # original cd $col/$rp/bib/$ck # level 7 from URLib echo \ " version = "'"original",' >>.b/a. else cd $col/$rp/bib/$ck # level 7 from URLib if test $work_in_progress = yes then echo \ " version = "'"'`echo $version | sed 's/ $//`'",' >>.b/a. else echo \ " version = "'"corrupted original",' >>.b/a. fi fi # repository echo " repository = "'"'$rp'"', >>.b/a. # make up the c.* file rm -f .b/c.* if \ test -f ../$col/$serv/not_sent/.setenv/library_location then # there exists an URL echo " URL = "\ '"http://'$ll'/' >.b/c.$ex echo " "\ 'rep/'$rp'",' >>.b/c.$ex else echo " email = "\ '"'`cat ../$col/$serv/not_sent/.setenv/e-mail`'",' >.b/c.$ex fi # make up the z. file echo } >.b/z. echo " " >>.b/z. # make up the @z file cat .b/*.* >.b/@z rm -f ../../.reserved/@ # migration (7/7/97) cat >../../.reserved/@ < Reference
`cat .b/@z`
end_@ # rm -f ../../.reserved/@ # ln .b/@z ../../.reserved/@ fi # make up the files in the .h directory # (used for creating the index.html file) if test ! -d .h then mkdir .h # chmod o+w .h else chmod -fR o-w .h # migration (March 17, 1997) fi cat a.bib | sed -n '/^[ ]*targetfile[ ]*=/p' | \ sed 's/^[ ]*targetfile[ ]*=[ ]*"// s/",[ ]*$//' >.t/tf set `cat .t/tf`; tf=$1 # tf (targetfile) if test $update_bib = yes || test ! -f .setenv/last_change || \ test $new_link = yes then # make up the a.* file from a.bib rm -f .h/a.* cat a.bib | sed -n '/^[ ]*@/p' | sed 's/^[^:]*:/:/' | \ sed 's/:[^:]*$/:/' >.t/yr set `cat .t/yr`; yr=$1 # yr (year) echo " " >.h/a.$ex # The

pattern below is used in ui and um. echo '

' >>.h/a.$ex # ' >>.h/a.$ex # entry type and citation key cat a.bib | grep '^[ ]*@' | \ sed 's/^[ ]*@// s/{/\ \ \ / s/,$/<\/FONT>
/' >>.h/a.$ex # author(s) and title # author(s) cat a.bib | \ sed -n '/^[ ]*author[ ]*=/p' >.t/ax if test -s .t/ax then set `echo author`; fd=$1 else set `echo editor`; fd=$1 fi cat a.bib | \ sed -n '/^[ ]*'$fd'[ ]*=/,/= /p' | \ sed '$d' | sed 's/\\[^ij]//g' | sed 's/\\//g' >.t/bx bx=`cat .t/bx` # turn it into one line echo $bx | \ sed 's/{//g s/}//g s/^'$fd' = *"// s/",[ ]*$//' >.t/a1 cat .t/a1 | egrep -v '{|}' >.t/a2 if test -s .t/a2 then cat .t/a1 | \ sed 's/ *and .*$//' | egrep ',' >.t/firstAuthor if test -s .t/firstAuthor then lastName=`cat .t/a1 | \ sed 's/,.*$//' | sed 's/ /_/g'` cat .t/a1 | sed 's/ /_/g' | \ sed 's/'$lastName'/'$lastName'<\/STRONG>/' | \ sed 's/_/ /g' | sed 's/$/ '$yr'/' >.t/field # >> # add the author's address cat \ ../$col/$serv/not_sent/address | \ sed -n '/'$lastName'/p' >.t/n1 if test -s .t/n1 then cat .t/n1 | sed '$d' >.t/n2 if test -s .t/n2 then # more than one author's name or address cat .t/a1 | \ sed 's/^.*, // s/\./ /g s/ */ /g s/ *$// s/ /\.*/g' >.t/n3 set `cat .t/n3`; n3=$1 cat .t/n1 | \ sed -n '/'$n3'/p' >.t/n4 if test -s .t/n4 then cat .t/n4 | sed '$d' >.t/n5 if test -s .t/n5 then # more than one author's name or address cat \ .t/field >>.h/a.$ex else set \ `cat .t/n4 | sed 's/^.*=//'`; ad=$1 cat .t/field | \ sed 's!!!' | \ sed 's/<\/STRONG>/<\/A><\/STRONG>/' >>.h/a.$ex fi else cat .t/field >>.h/a.$ex fi else \ set `cat .t/n1 | sed 's/^.*=//'`; ad=$1 cat .t/field | \ sed 's!!!' | \ sed 's/<\/STRONG>/<\/A><\/STRONG>/' >>.h/a.$ex fi else cat .t/field >>.h/a.$ex fi # << else cat .t/a1 | sed 's/$/ '$yr'/' >>.h/a.$ex fi else cat .t/a1 | sed 's/$/ '$yr'/' >>.h/a.$ex fi # title cat a.bib | \ sed -n '/^[ ]*title[ ]*=/,/= /p' | \ sed '$d' | $cp/../doc/bib2html >.t/bx bx=`cat .t/bx` # turn it into one line echo $bx | \ sed 's/^title = *"/
/ s/",[ ]*$/<\/CITE>
/' >>.h/a.$ex # link icons rm -f ../../.reserved/icon rm -f ../../.reserved/*.gif # migration 4/8/97 rm -f ../../.reserved/*.jpeg # migration 4/8/97 # *.jpg not available in Java ls *.gif *.jpeg *.jpg>.t/ax 2>.t/bx if test -s .t/ax then icon=`cat .t/ax | sed -n '1p'` echo $icon | \ awk '{ printf "ln %s ../../.reserved/icon\n", $1 }' >.t/ic else icon=square.gif echo \ 'ln ../'$col/$serv'/bib/Banon==UnReSe/square.gif ../../.reserved/icon' >.t/ic fi chmod +x .t/ic .t/ic # ln fi # if test $update_bib = yes || test ! -f .setenv/last_change || \ # test $new_link = yes # make up the b. and c.* files # icon/applet echo \ '' >.t/L # L # if test -f \ #../$col/$serv/not_sent/.setenv/library_location # then # there exists an URL # echo \ #' '\ #'applet' \ #>.t/L # L # else # echo \ #'' >.t/L # L # fi # ls *.gif *.jpeg >.t/ax 2>.t/bx # if test -s .t/ax # then # cat .t/ax | \ #sed -n '1p' >.t/im # im (image) # echo \ #'' >.t/L # L # echo \ #'' >.t/W # W # else # echo \ #'' >.t/L # L # echo \ #'' >.t/W # W # fi # make up the b. file (used for creating the index.html file) rm -f .h/b.* # migration (April 3, 1997) # @ # if test -f \ #../$col/$serv/not_sent/.setenv/library_location # then # echo \ #'
@ ' \ #>.h/b. # else echo \ '@ ' \ >.h/b. # fi # icon if test -f \ ../$col/$serv/not_sent/.setenv/library_location then # there exists an URL # echo \ #`cat .t/L`'' >>.h/b. echo ''`cat .t/L`'' >>.h/b. else echo \ ''`cat .t/L`'' >>.h/b. fi # size set `cat ../../.reserved/size`; szkb=$1 echo \ ' (size: '$szkb' Kbytes)' >>.h/b. # version cd $cp # level 0 from not_sent cat .t/last_change_new | \ sed -n '1p' | grep original >.t/ax if test -s .t/ax then type=': original' else if test $work_in_progress = yes then type=\ ': '`echo $version | awk -F: '{print $4 }'` else type=\ ': corrupted original' fi fi cd $col/$rp/bib/$ck # level 7 from URLib echo \ ' '\ '(version'$type')'\ '' >>.h/b. # send echo \ '' >>.h/b. # download ls ../../download >.t/ex1 2>.t/bx if test -s .t/ex1 then # download exists cat ../../.reserved/ref | \ sed -n '/\//p' >.t/ex2 if test ! -s .t/ex2 then # no ref cat .t/ex1 | \ sed -n '1p' >.t/dl echo \ ' download' >>.h/b. fi fi # rref (relative reference) cat ../../.reserved/ref | egrep '/' >.t/ax if test -s .t/ax then set `cat .t/ax | wc -l`; nl=$1 if \ test -f ../$col/$serv/not_sent/.setenv/library_location then echo \ ' ('\ 'rref: '$nl')' >>.h/b. else echo \ ' ('\ 'rref: '$nl')' >>.h/b. fi fi # link cat ../../.reserved/link | grep -v '^$' >.t/ax if test -s .t/ax then set `cat .t/ax | wc -l`; nl=$1 echo \ ' ('\ 'link: '$nl')' >>.h/b. fi # Scooter ------- url1=http://$ll/cgi if \ test -f ../$col/$serv/not_sent/.setenv/check_indicator then if \ test -f ../$col/$serv/not_sent/.setenv/library_location && \ ( test ! -f ../.@AV.html || \ test -f ../../.reserved/@AV2 ) then # still to be checked echo URLibindex+and+url:$rp | \ sed 's/:/%3A/g s/\//%2F/g' >.t/url2 url2=`cat .t/url2` echo \ ' Scooter' >>.h/b. fi # Scooter --- end fi echo '
' >>.h/b. # make up the c.* file (used for creating the mirror.html file) rm -f .h/c.* # if test -f \ #../$col/$serv/not_sent/.setenv/library_location # then # there exists an URL # echo \ #'@ ' \ #>.h/c.$ex # echo ''`cat .t/W`'' >>.h/c.$ex # echo \ #' '\ #'size' \ #>>.h/c.$ex # echo \ #' '\ #'version'\ #'' >>.h/c.$ex # echo \ #'' >>.h/c.$ex # if test -s .t/ex1 # then # download exists # if test ! -s .t/ex2 # then # no ref # echo \ #' download' >>.h/c.$ex # fi # fi # cat \ #../../.reserved/ref | sed -n '/\//p' >.t/ax # if test -s .t/ax # then # echo \ #' '\ #'rref
' >>.h/c.$ex # else # echo '
' >>.h/c.$ex # fi # fi # make up the d. file echo \ 'sites  statistics  '$rp'' >.h/d. # echo ''$rp\ #' (statistics)' >.h/d. # the blank after $rp' ...
' is important for ui # make up the @z file cat .h/[abd].* >.h/@z if test -f \ ../$col/$serv/not_sent/.setenv/library_location then # URL # make up the .@AV.html file (for Alta Vista) and the header file # (for the access page) author=`cat \ .h/a.$ex | sed -n '5p' | sed 's///' | sed 's/<\/STRONG>//'` title=`cat \ .h/a.$ex | sed -n '6p' | sed 's/<[^>]*>//g'` cat a.bib | egrep '^[ ]*@' | \ sed 's/^[ ]*@// s/{.*$//' >../../.reserved/header # entry type echo $title >>../../.reserved/header echo $author >>../../.reserved/header echo $tf >>../../.reserved/header # make up the .@AV.html file cat a.bib | \ sed -n '/^[ ]*keywords[ ]*=/,/= /p' | \ sed '$d' | sed 's/\\[^ij]//g' | sed 's/\\//g' >.t/bx bx=`cat .t/bx` # turn it into one line echo $bx | \ sed 's/{//g s/}//g s/^keywords = *"// s/",[ ]*$// s/\.$//' >.t/kw cat a.bib | \ sed -n '/^[ ]*note[ ]*=/,/= /p' | \ sed '$d' | sed 's/\\[^ij]//g' | sed 's/\\//g' >.t/bx bx=`cat .t/bx` # turn it into one line echo $bx | \ sed 's/{//g s/}//g s/^note = *"// s/",[ ]*$// s/\.$//' >.t/nt cat a.bib | \ sed -n '/^[ ]*abstract[ ]*= /,/= /p' | \ sed '$d' | sed 's/\\[^ij]//g' | sed 's/\\//g' >.t/bx bx=`cat .t/bx` # turn it into one line echo $bx | \ sed 's/{//g s/}//g s/^abstract = *"// s/",[ ]*$// s/"//g s/\.$//' >.t/ab echo \ 'URLibindex '`cat .t/kw`' '`cat .t/nt`' '`cat .t/ab` | \ sed 's/[,;]//g s/ */ /g s/ *$//' >.t/keywords cat .h/@z | \ grep -v 'check)$' >.t/AV # must be grep and not egrep au=`echo $author | sed 's/<[^>]*>//g'` if test ! -f ../.@AV.html || \ test -f ../../.reserved/@AV2 then path=`pwd` cd ../../.reserved path2=`pwd` cd $path echo http://$ll\ /col/$rp/bib/.@AV.html'&'$path2 | \ sed 's/:/%3A/g s/\//%2F/g' >.t/string string=`cat .t/string` rm -fr ../.AV # migration 3/6/97 cat \ >../.@AV.html < $au

This is the first access to this URL.
Please click here and then reload to continue.

end_../.@AV.html cat \ >../../.reserved/@AV2 < $au `cat .t/AV` end_../../.reserved/@AV2 else # update case cat \ >../.@AV.html < $au `cat .t/AV` end_../.@AV.html fi echo $ll $rp $version | \ sed 's/ (original)/-/' >>$cp/.t/add else # no URL echo undefinedServer $rp $version >>$cp/.t/add rm -f ../../.reserved/@AV2 rm -f ../.@AV.html fi # chmod -fR o+w .h rm -r .t cd $cp # level 0 from not_sent # cd \ #../$col/dpi.inpe.br/banon/1995/08.08.00.00/not_sent cat \ .t/last_change_new >$col/$rp/.reserved/last_change # fi fi # if test $update_bib = yes || test $update_doc = yes || \ # test ! -f .setenv/last_change || test $new_link = yes # < # first repository generation - end fi cat .t/i1 | sed '1d' > .t/i2 cat .t/i2 >.t/i1 done # ../doc/setindicator - # canceled - incompatible with updating the index # e.g. when sr is used