Utility script to add license headers.
Utility script to add license headers.

Adding license headers is annoying and I'm tired of doing it. This still has some kinks to work out, but is in a reasonable place.

Why another one of these, given that there's also https://github.com/google/addlicense and https://github.com/mbrukman/autogen? Those both try to hook into directory traversal and have issues handling unknown file extesions. They're written in go and bash, respectively. I don't want to add a dep in IREE on go and I don't want to try and fix a giant bash script.

I deliberately avoided baking traversal into this script because I wanted to make it play nicely with source control that just sends formatting contents on stdin.

PiperOrigin-RevId: 293273364

google/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,google/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,iree-org/iree,google/iree