aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-11-17 23:10:55 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-11-17 23:10:55 +0000
commitfbbfad54d6281c2e08aeb2ac51c68cb7ba293f7e (patch)
tree1e77bcfa76d82371200bd7f1b34287772dc4b8be /scripts
parentcf63bff8cd66b2c1640092d4f067b3073e53c4b7 (diff)
downloadYAGE-fbbfad54d6281c2e08aeb2ac51c68cb7ba293f7e.tar.gz
YAGE-fbbfad54d6281c2e08aeb2ac51c68cb7ba293f7e.zip
Adding default shaders
Diffstat (limited to 'scripts')
-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()