lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 4d2b063 1/3: Improve copyright-update documen


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 4d2b063 1/3: Improve copyright-update documentation; rectify cross references
Date: Thu, 9 Jan 2020 13:31:18 -0500 (EST)

branch: master
commit 4d2b063406bbb060c7580a26bbe2a17309a374bf
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve copyright-update documentation; rectify cross references
---
 GNUmakefile      |  2 +-
 gwc/develop1.txt |  2 +-
 gwc/develop2.txt | 22 +++++++++++++++++-----
 3 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index 307bc11..36c465e 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -499,7 +499,7 @@ check_concinnity: source_clean custom_tools
 # either in the last days of the old year or the first days of the
 # new, so they can't be derived dynamically from the current date.
 #
-# For rate tables etc., see 'gwc/develop2'.
+# For rate tables etc., see 'gwc/develop2.txt'.
 
 old_year := 2019
 new_year := 2020
diff --git a/gwc/develop1.txt b/gwc/develop1.txt
index 264d5a5..99d9231 100644
--- a/gwc/develop1.txt
+++ b/gwc/develop1.txt
@@ -1,4 +1,4 @@
-  # Set up my customary working environment (prerequisite: 'develop0')
+  # Set up my customary working environment (prerequisite: 'develop0.txt')
 
   # Work with multiple screens
   #
diff --git a/gwc/develop2.txt b/gwc/develop2.txt
index 2cc204e..99a820f 100644
--- a/gwc/develop2.txt
+++ b/gwc/develop2.txt
@@ -1,4 +1,4 @@
-  # Work with proprietary repository (prerequisite: 'develop0')
+  # Work with proprietary repository (prerequisite: 'develop0.txt')
   #
   # Discussed in detail here:
   #   http://lists.nongnu.org/archive/html/lmi/2016-03/msg00031.html
@@ -79,8 +79,20 @@ wine /opt/lmi/bin/rate_table_tool --accept 
--file=proprietary --verify
   #   /opt/lmi/proprietary/test/ChangeLog
   # and adding the current year to each copyright notice, using an
   # expression such as
-  #   /Copyright/s/201X/201X, 201Y/
-  # (of course modifying the 'X' and 'Y' years)
+  #   /Copyright/s/202X/202X, 202Y/
+  # (of course modifying the 'X' and 'Y' years), e.g.:
+
+cd /opt/lmi/proprietary/
+for z in $(grep -l -dskip Copyright *); do sed -i $z 
-e'/Copyright/s/2019/2019, 2020/'; done
+
+cd /opt/lmi/proprietary/src
+for z in $(grep -l -dskip Copyright *); do sed -i $z 
-e'/Copyright/s/2019/2019, 2020/'; done
+
+cd /opt/lmi/proprietary/hooks
+for z in $(grep -l -dskip Copyright *); do sed -i $z 
-e'/Copyright/s/2019/2019, 2020/'; done
+
+cd /opt/lmi/proprietary/test
+for z in ChangeLog ; do sed -i $z -e'/Copyright/s/2019/2019, 2020/'; done
 
   # Regenerating XML product files in /opt/lmi/data updates their
   # copyright notices automatically to show the current year.
@@ -90,14 +102,14 @@ wine /opt/lmi/bin/rate_table_tool --accept 
--file=proprietary --verify
   # 'X' and 'Y' years):
 
 cd /opt/lmi/proprietary/data/
-for z in *; do sed -i $z -e'/Copyright/s/201X/201X, 201Y/'; done
+for z in *; do sed -i $z -e'/Copyright/s/202X/202Y/'; done
 
   # and compare to the regenerated set in /opt/lmi/data
 
   # Use the same command to update rate tables similarly:
 
 cd /opt/lmi/proprietary/tables
-for z in *; do sed -i $z -e'/Copyright/s/201X/201Y/'; done
+for z in *; do sed -i $z -e'/Copyright/s/202X/202Y/'; done
 
   # and regenerate the binary database.
 



reply via email to

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