[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: |
Tue, 2 Oct 2018 16:32:41 -0400 (EDT) |
CVSROOT: /webcvs/www
Module name: www
Changes by: Therese Godefroy <th_g> 18/10/02 16:32:41
Modified files:
server/staging/proprietary/rec: propr-gen
Log message:
Fix comments.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/staging/proprietary/rec/propr-gen?cvsroot=www&r1=1.9&r2=1.10
Patches:
Index: propr-gen
===================================================================
RCS file: /webcvs/www/www/server/staging/proprietary/rec/propr-gen,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- propr-gen 1 Oct 2018 21:24:00 -0000 1.9
+++ propr-gen 2 Oct 2018 20:32:40 -0000 1.10
@@ -62,10 +62,9 @@
recsel -p Id,Blurb -e "$expr" $temp1 > $temp2
# convert to HTML, and
rec2html
- # 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.
+ # Add a marker for addition of single item.
+ sed -i -e "/<ul class=.blurbs.>/ a<!-- INSERT $key2 -->" $temp2
+ # Add the list to the page.
sed -i "/<!-- INSERT $key2.list -->/r $temp2" $out
done
@@ -73,10 +72,11 @@
else
recsel -p Id,Blurb $temp1 > $temp2
rec2html
- sed -i "/<ul class=[^>]\+>/ a<!-- INSERT $key1 -->" $temp2
+ sed -i "/<ul class=.blurbs.>/ a<!-- INSERT $key1 -->" $temp2
sed -i "/<!-- INSERT $key1.list -->/r $temp2" $out
fi
+ # Remove the list markers.
sed -i 's/<!-- INSERT .*\.list -->//' $out
done
@@ -85,6 +85,7 @@
cp proprietary-stub.html ../proprietary.html
recsel -t Malware -p Id,Blurb -e "Added > 20180900" propr-blurbs.rec > $temp2
rec2html
+sed -i "/<ul class=.blurbs.>/ a<!-- INSERT latest -->" $temp2
sed -i "/<!-- INSERT latest.list -->/r $temp2" ../proprietary.html
sed -i 's/<!-- INSERT .*\.list -->//' ../proprietary.html