[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e76a46b 1/2: Add instructions for updating co
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e76a46b 1/2: Add instructions for updating copyright notices |
Date: |
Fri, 5 Jan 2018 13:12:54 -0500 (EST) |
branch: master
commit e76a46b4fd9db5a773dda65425a74b02154111e3
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Add instructions for updating copyright notices
---
gwc/develop2.txt | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gwc/develop2.txt b/gwc/develop2.txt
index d1ecd09..2dc1513 100644
--- a/gwc/develop2.txt
+++ b/gwc/develop2.txt
@@ -95,3 +95,39 @@ cd ../src ; make srcdir=/opt/lmi/src/lmi -f
/opt/lmi/src/lmi/GNUmakefile check
cd ../test ; make srcdir=/opt/lmi/src/lmi -f /opt/lmi/src/lmi/GNUmakefile
check_concinnity 2>&1 |less -S
cd ../tables; make srcdir=/opt/lmi/src/lmi -f /opt/lmi/src/lmi/GNUmakefile
check_concinnity 2>&1 |less -S
+ # To update copyright notices annually
+
+ # Source files are so few that it's expedient to treat them manually
+ # by editing all files in
+ # /opt/lmi/proprietary/.
+ # /opt/lmi/proprietary/src/
+ # /opt/lmi/proprietary/hooks/
+ # /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)
+
+ # Regenerating XML product files in /opt/lmi/data updates their
+ # copyright notices automatically to show the current year.
+ # (Historical years aren't necessary for these generated files.)
+ # To produce the same effect in the proprietary repository,
+ # run a command such as the following (of course modifying the
+ # 'X' and 'Y' years):
+
+cd /opt/lmi/proprietary/data/
+for z in *; do sed -i $z -e'/Copyright/s/201X/201Y/'; 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/2016/2017/'; done
+
+ # and regenerate the binary database.
+
+ # Files in the test/ subdirectory (except test/ChangeLog treated
+ # above) need not be updated: they aren't distributed and need no
+ # current copyright notice.
+