www-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

www/proprietary/workshop update-item-count


From: Therese Godefroy
Subject: www/proprietary/workshop update-item-count
Date: Mon, 13 Jul 2020 06:10:52 -0400 (EDT)

CVSROOT:        /webcvs/www
Module name:    www
Changes by:     Therese Godefroy <th_g> 20/07/13 06:10:52

Modified files:
        proprietary/workshop: update-item-count 

Log message:
        Restore item-count rounding to 50, but leave link-count rounding at 10 
until it reaches 551.

CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/proprietary/workshop/update-item-count?cvsroot=www&r1=1.3&r2=1.4

Patches:
Index: update-item-count
===================================================================
RCS file: /webcvs/www/www/proprietary/workshop/update-item-count,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- update-item-count   13 Jul 2020 09:51:07 -0000      1.3
+++ update-item-count   13 Jul 2020 10:10:52 -0000      1.4
@@ -19,11 +19,11 @@
 
 # Get the number of items, and approximate it to the nearest 50.
 item_count=$(grep -Ec '^Id: 20[0-9]{7}$' mal.rec)
-i=$((item_count/10))
-i=$((i*10))
+i=$((item_count/50))
+i=$((i*50))
 d=$((item_count%50))
-if [ $d -ge 5 ]; then
-  i=$((i+10))
+if [ $d -ge 25 ]; then
+  i=$((i+50))
 fi
 
 # Get the number of links, and approximate it to the lower 50.
@@ -46,8 +46,8 @@
 # free-software-even-more-important.html changed, update the files
 # as needed.
 month=$(date +'%B, %Y')
-#if ! grep -q "list around $i\>" ../proprietary.html \
-#   || ! grep -q "more than $l references" ../proprietary.html; then
+if ! grep -q "list around $i\>" ../proprietary.html \
+   || ! grep -q "more than $l references" ../proprietary.html; then
   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|
@@ -58,9 +58,9 @@
      exit 1
   fi
   echo "Malware count was updated in proprietary.html."
-#fi
+fi
 f=../../philosophy/free-software-even-more-important.html
-#if ! grep -q "lists around $i different" $f; then
+if ! grep -q "lists around $i different" $f; then
   sed -i "
   s|That directory lists around .* different|That directory lists around $i 
different|
   s|malicious functionalities (as of .*),|malicious functionalities (as of 
$month),|
@@ -71,4 +71,4 @@
      exit 1
   fi
   echo "Malware count was updated in ${f#../../}."
-#fi
+fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]