diff options
author | EliteTK <tomasz.kramkowski@gmail.com> | 2014-11-08 18:19:05 +0000 |
---|---|---|
committer | EliteTK <tomasz.kramkowski@gmail.com> | 2014-11-08 18:19:05 +0000 |
commit | b59699746fd3afe2390aadbeaa2249a7b84d5cb8 (patch) | |
tree | 72bb91f50391bf2215f5df3b12493410dfe8b43f /prefix_header | |
parent | 59980aebbaaaee28062f9a10b283561c6cd0f2dd (diff) | |
download | c-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-x | prefix_header | 7 |
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 |