mirror of
https://github.com/Z3Prover/z3
synced 2025-06-22 05:43:39 +00:00
add more Copyright notes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b08ccc7816
commit
d469a16bb8
10 changed files with 57 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
# Copyright (c) 2015 Microsoft Corporation
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
|
@ -42,13 +44,14 @@ def add_cr(file):
|
|||
ous.close()
|
||||
os.system("move %s %s" % (tmp, file))
|
||||
|
||||
def add_missing_cr():
|
||||
for root, dirs, files in os.walk('src'):
|
||||
def add_missing_cr(dir):
|
||||
for root, dirs, files in os.walk(dir):
|
||||
for f in files:
|
||||
if f.endswith('.cpp') or f.endswith('.h'):
|
||||
if f.endswith('.cpp') or f.endswith('.h') or f.endswith('.c'):
|
||||
path = "%s\\%s" % (root, f)
|
||||
if not has_cr(path):
|
||||
print "Missing CR for %s" % path
|
||||
add_cr(path)
|
||||
|
||||
add_missing_cr()
|
||||
add_missing_cr('src')
|
||||
add_missing_cr('examples')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue