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;; |
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 |