Be more thorough about file copyrights

Add a copyright header to the .gitignore file with start and end
years determined from its commit history. Add copyright headers for
the current year to overrides.log and qa.log, and also add
functionality to correlate() which adds these headers from now on.
Update the copyright year on overrides.conf, which was missed in
8a37edd and later commits. All files tracked in this repository now
declare a copyright and refer to the main LICENSE file for licensing
terms.
This commit is contained in:
Jeremy Stanley
2020-06-21 13:46:39 +00:00
parent 62b0ce6d9d
commit 0a4712f9a8
5 changed files with 25 additions and 1 deletions

4
.gitignore vendored
View File

@@ -1,3 +1,7 @@
# Copyright (c) 2012-2020 Jeremy Stanley <fungi@yuggoth.org>. Permission to
# use, copy, modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
*_old *_old
*Gaz_*_national.zip *Gaz_*_national.zip
COOP-ACT.TXT COOP-ACT.TXT

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2006-2016 Jeremy Stanley <fungi@yuggoth.org>. Permission to # Copyright (c) 2006-2020 Jeremy Stanley <fungi@yuggoth.org>. Permission to
# use, copy, modify, and distribute this software is granted under terms # use, copy, modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software. # provided in the LICENSE file distributed with this software.

View File

@@ -1,3 +1,7 @@
# Copyright (c) 2020 Jeremy Stanley <fungi@yuggoth.org>. Permission to
# use, copy, modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
added zone hkz000 (+4 options) added zone hkz000 (+4 options)
changed station cahr (+3 options) changed station cahr (+3 options)
changed station cerm (+3 options) changed station cerm (+3 options)

4
qa.log
View File

@@ -1,3 +1,7 @@
# Copyright (c) 2020 Jeremy Stanley <fungi@yuggoth.org>. Permission to
# use, copy, modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
cpxl: no description cpxl: no description
cpxl: no location cpxl: no location
ctnk: no description ctnk: no description

View File

@@ -1739,6 +1739,12 @@ def correlate():
if os.path.exists(overrideslog_fn): if os.path.exists(overrideslog_fn):
os.rename(overrideslog_fn, "%s_old"%overrideslog_fn) os.rename(overrideslog_fn, "%s_old"%overrideslog_fn)
overrideslog_fd = codecs.open(overrideslog_fn, "w", "utf8") overrideslog_fd = codecs.open(overrideslog_fn, "w", "utf8")
import time
overrideslog_fd.write(
'# Copyright (c) %s Jeremy Stanley <fungi@yuggoth.org>. Permission to\n'
'# use, copy, modify, and distribute this software is granted under terms\n'
'# provided in the LICENSE file distributed with this software.\n\n'
% time.gmtime().tm_year)
overrideslog_fd.writelines(overrideslog) overrideslog_fd.writelines(overrideslog)
overrideslog_fd.close() overrideslog_fd.close()
print("done (%s overridden sections: +%s/-%s/!%s)." % ( print("done (%s overridden sections: +%s/-%s/!%s)." % (
@@ -2087,6 +2093,12 @@ def correlate():
if os.path.exists(qalog_fn): if os.path.exists(qalog_fn):
os.rename(qalog_fn, "%s_old"%qalog_fn) os.rename(qalog_fn, "%s_old"%qalog_fn)
qalog_fd = codecs.open(qalog_fn, "w", "utf8") qalog_fd = codecs.open(qalog_fn, "w", "utf8")
import time
qalog_fd.write(
'# Copyright (c) %s Jeremy Stanley <fungi@yuggoth.org>. Permission to\n'
'# use, copy, modify, and distribute this software is granted under terms\n'
'# provided in the LICENSE file distributed with this software.\n\n'
% time.gmtime().tm_year)
qalog_fd.writelines(qalog) qalog_fd.writelines(qalog)
qalog_fd.close() qalog_fd.close()
if qalog: if qalog: