/[global]/global/htags/bless.sh.tmpl
ViewVC logotype

Diff of /global/htags/bless.sh.tmpl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by shigio, Fri Mar 18 13:34:01 2005 UTC revision 1.4 by shigio, Wed Mar 30 09:39:49 2005 UTC
# Line 18  Line 18 
18  #       % cd /var/obj/HTML  #       % cd /var/obj/HTML
19  #       % sh bless.sh           <- OK. It will work well!  #       % sh bless.sh           <- OK. It will work well!
20  #  #
 pattern1='input type=hidden name=id value'  
 pattern2='form method=get action'  
21  action=@action@  action=@action@
22  case $1 in  case $1 in
23  -v)     verbose=1;;  -v)     verbose=1;;
# Line 27  esac Line 25  esac
25  id=`pwd`  id=`pwd`
26  for f in mains.html index.html search.html; do  for f in mains.html index.html search.html; do
27          if [ -f $f ]; then          if [ -f $f ]; then
28                  sed -e "s!<$pattern1=.*>!<$pattern1=$id>!" -e "s!<$pattern2=[^ >]*!<$pattern2=$action!" $f > $f.new;                  sed -e "s!<\(input type='hidden' name='id' value\)='[^']*'\(.*\)>!<\1='$id'\2>!" \
29                       -e "s!<\(form method='get' action\)='[^']*'\(.*\)>!<\1='$action'\2>!" $f > $f.new;
30                  if cmp $f $f.new >@null_device@; then                  if cmp $f $f.new >@null_device@; then
31                          rm -f $f.new                          rm -f $f.new
32                  else                  else

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26