summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Copyrighter.py')
-rwxr-xr-xtools/Copyrighter.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/Copyrighter.py b/tools/Copyrighter.py
new file mode 100755
index 0000000..9726f03
--- /dev/null
+++ b/tools/Copyrighter.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+
+import os
+
+TEMPLATE = """/*
+ * Copyright (c) %(year)s %(author)s
+ * %(license)s
+ */"""
+
+for (path, dirs, files) in os.walk("src") :
+ if "3rdParty" in path :
+ continue
+ for filename in files :
+ if not filename.endswith(".cpp") and not filename.endswith(".h") :
+ continue
+ if filename.startswith("moc_") :
+ continue
+ fullFilename = path + "/" + filename
+ print fullFilename