aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/add_version_headers
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/add_version_headers')
-rwxr-xr-xscripts/add_version_headers7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/add_version_headers b/scripts/add_version_headers
index 209f0c66..c4fd3ffc 100755
--- a/scripts/add_version_headers
+++ b/scripts/add_version_headers
@@ -59,8 +59,11 @@ class HeaderUpdate(object):
with open(filePath, "r+") as f:
src = f.read()
f.seek(0)
- if lic_regex.match(src):
- print(filePath)
+ if not lic_regex.match(src):
+ print("Adding {}: ".format(
+ os.path.basename(filePath)), end="")
+ src = header.format(os.path.basename(filePath)) + src
+ print("done")
f.write(src)
f.truncate()