[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/proprietary/workshop item-create
From: |
Therese Godefroy |
Subject: |
www/proprietary/workshop item-create |
Date: |
Sun, 28 Oct 2018 05:59:12 -0400 (EDT) |
CVSROOT: /webcvs/www
Module name: www
Changes by: Therese Godefroy <th_g> 18/10/28 05:59:12
Modified files:
proprietary/workshop: item-create
Log message:
Fix a bug in item & link count update; don't update the month if
rounded counts are the same.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/proprietary/workshop/item-create?cvsroot=www&r1=1.1&r2=1.2
Patches:
Index: item-create
===================================================================
RCS file: /webcvs/www/www/proprietary/workshop/item-create,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- item-create 27 Oct 2018 15:24:10 -0000 1.1
+++ item-create 28 Oct 2018 09:59:12 -0000 1.2
@@ -225,17 +225,19 @@
l=$((link_count/50))
l=$((l*50))
+if grep -v "list around $i" ../proprietary.html > /dev/null &&
+ grep -v "more than $l references" ../proprietary.html > /dev/null; then
# Update item and link count in proprietary.html and
# free-software-even-more-important.html.
-month=$(date +'%B, %Y')
-sed -i "
-s|As of .*, the pages in this directory list .*$|As of $today, the pages in
this directory list around $i|
-s|functionalities (with .* references|functionalities (with more than $l
references|
-" ../proprietary.html
-
-sed -i "
-s|That directory lists around .* different|That directory lists around $i
different|
-s|malicious functionalities (as of .*),|malicious functionalities (as of
$month),|
-" ../../philosophy/free-software-even-more-important.html
+ month=$(date +'%B, %Y')
+ sed -i "
+ s|As of .*, the pages in this directory list .*$|As of $month, the pages in
this directory list around $i|
+ s|functionalities (with .* references|functionalities (with more than $l
references|
+ " ../proprietary.html
+ sed -i "
+ s|That directory lists around .* different|That directory lists around $i
different|
+ s|malicious functionalities (as of .*),|malicious functionalities (as of
$month),|
+ " ../../philosophy/free-software-even-more-important.html
+fi
exit 0
- www/proprietary/workshop item-create,
Therese Godefroy <=