www-commits
[Top][All Lists]
Advanced

[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, 4 Nov 2018 16:43:56 -0500 (EST)

CVSROOT:        /webcvs/www
Module name:    www
Changes by:     Therese Godefroy <th_g> 18/11/04 16:43:56

Modified files:
        proprietary/workshop: item-create 

Log message:
        Fix conditions for count update.

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

Patches:
Index: item-create
===================================================================
RCS file: /webcvs/www/www/proprietary/workshop/item-create,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- item-create 30 Oct 2018 14:02:07 -0000      1.3
+++ item-create 4 Nov 2018 21:43:55 -0000       1.4
@@ -228,15 +228,15 @@
 # Update item and link count in proprietary.html and
 # free-software-even-more-important.html, as needed.
 month=$(date +'%B, %Y')
-if grep -v "list around $i" ../proprietary.html > /dev/null &&
- grep -v "more than $l references" ../proprietary.html > /dev/null; then
+if ! grep "list around $i" ../proprietary.html > /dev/null ||
+ ! grep "more than $l references" ../proprietary.html > /dev/null; 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|
   " ../proprietary.html
   echo "Malware count was updated in proprietary.html."
 fi
-if grep -v "lists around $i different" \
+if ! grep "lists around $i different" \
  ../../philosophy/free-software-even-more-important.html > /dev/null; then
   sed -i "
   s|That directory lists around .* different|That directory lists around $i 
different|



reply via email to

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