Mercurial > public > ostc4
diff Documentations/setGPLHeader.py @ 35:6237372f76a4
... more GPL License and general cleanups
author | jDG@sauge |
---|---|
date | Wed, 07 Mar 2018 18:56:48 +0100 |
parents | 3a98f9e7ca58 |
children |
line wrap: on
line diff
--- a/Documentations/setGPLHeader.py Wed Mar 07 17:35:35 2018 +0100 +++ b/Documentations/setGPLHeader.py Wed Mar 07 18:56:48 2018 +0100 @@ -23,7 +23,7 @@ if not os.path.exists(path): continue print(path + ':') - for file in glob.iglob( os.path.join(path, '*.[chs]') ): + for file in sorted( glob.iglob( os.path.join(path, '*.[chs]') ) ): try: work(file) except Exception as e: @@ -44,7 +44,6 @@ kw = {} kw['file'] = file.replace(OSTC4+'/', '') kw['brief'] = '' - kw['author'] = 'Heinrichs Weikamp' kw['date'] = '2018' # Try to gather info from existing header, if any: @@ -55,7 +54,6 @@ return get(line, 'brief', kw) - get(line, 'author', kw) get(line, 'date', kw) # Replace kw in header