aboutsummaryrefslogtreecommitdiffstats
path: root/prefix_header
diff options
context:
space:
mode:
authorEliteTK <tomasz.kramkowski@gmail.com>2014-11-08 18:19:05 +0000
committerEliteTK <tomasz.kramkowski@gmail.com>2014-11-08 18:19:05 +0000
commitb59699746fd3afe2390aadbeaa2249a7b84d5cb8 (patch)
tree72bb91f50391bf2215f5df3b12493410dfe8b43f /prefix_header
parent59980aebbaaaee28062f9a10b283561c6cd0f2dd (diff)
downloadc-stuff-b59699746fd3afe2390aadbeaa2249a7b84d5cb8.tar.gz
c-stuff-b59699746fd3afe2390aadbeaa2249a7b84d5cb8.tar.xz
c-stuff-b59699746fd3afe2390aadbeaa2249a7b84d5cb8.zip
Wrote license header prefixing tool and added some new code.
Diffstat (limited to 'prefix_header')
-rwxr-xr-xprefix_header7
1 files changed, 7 insertions, 0 deletions
diff --git a/prefix_header b/prefix_header
new file mode 100755
index 0000000..f18305e
--- /dev/null
+++ b/prefix_header
@@ -0,0 +1,7 @@
+#! /usr/bin/env bash
+
+for file in "$@"; do
+ echo "Processing $file"
+ cat "LICENSE_HEADER" "$file" >"${file}.LICENSE_HEADER"
+ mv "${file}.LICENSE_HEADER" "$file"
+done