summaryrefslogtreecommitdiffstats
path: root/scripts/addheader.py
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-06-06 10:32:53 +0800
committerPeng Wu <alexepico@gmail.com>2012-06-06 10:32:53 +0800
commit4d8398255acc7556bb45c34cd2cb77dbe6d2ae3e (patch)
treeee24a98d8eb6c5b3567effea81b90f7d467e6362 /scripts/addheader.py
parent928a7cce363dee8b42452bc0cf99c6070c6d4626 (diff)
remove scripts
Diffstat (limited to 'scripts/addheader.py')
-rw-r--r--scripts/addheader.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/addheader.py b/scripts/addheader.py
deleted file mode 100644
index 09e628e..0000000
--- a/scripts/addheader.py
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env python
-import sys
-
-def add_header(name, header):
- with file(name) as fin:
- lines = fin.readlines()
- with file(name, "w") as fout:
- for l in header:
- print >> fout, l,
- if lines[0].startswith("/*") and lines[0].endswith("*/\n"):
- pass
- else:
- print >> fout, lines[0],
- for l in lines[1:]:
- print >> fout, l,
-
-def main():
- with file("header") as f:
- header = f.readlines()
- for name in sys.argv[1:]:
- add_header(name, header)
-
-if __name__ == "__main__":
- main()