[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/staging/proprietary/rec propr-gen
From: |
Therese Godefroy |
Subject: |
www/server/staging/proprietary/rec propr-gen |
Date: |
Mon, 1 Oct 2018 17:24:01 -0400 (EDT) |
CVSROOT: /webcvs/www
Module name: www
Changes by: Therese Godefroy <th_g> 18/10/01 17:24:01
Modified files:
server/staging/proprietary/rec: propr-gen
Log message:
Add markers in regenerated pages for inserting single new items.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/staging/proprietary/rec/propr-gen?cvsroot=www&r1=1.8&r2=1.9
Patches:
Index: propr-gen
===================================================================
RCS file: /webcvs/www/www/server/staging/proprietary/rec/propr-gen,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- propr-gen 26 Sep 2018 20:36:01 -0000 1.8
+++ propr-gen 1 Oct 2018 21:24:00 -0000 1.9
@@ -62,7 +62,10 @@
recsel -p Id,Blurb -e "$expr" $temp1 > $temp2
# convert to HTML, and
rec2html
- # insert the list in the page stub.
+ # insert the list in the page stub; add a marker for addition of
+ # single item.
+ sed -i -e "/<ul class=[^>]\+>/ a<!-- INSERT $key2 -->" $temp2
+ # Remove the list marker.
sed -i "/<!-- INSERT $key2.list -->/r $temp2" $out
done
@@ -70,6 +73,7 @@
else
recsel -p Id,Blurb $temp1 > $temp2
rec2html
+ sed -i "/<ul class=[^>]\+>/ a<!-- INSERT $key1 -->" $temp2
sed -i "/<!-- INSERT $key1.list -->/r $temp2" $out
fi
- www/server/staging/proprietary/rec propr-gen,
Therese Godefroy <=