mbrukman / autogen

Automatically generate boilerplate license comments.
Apache License 2.0
98 stars 27 forks source link

Bulk update files #4

Open mbrukman opened 8 years ago

mbrukman commented 8 years ago

It would be nice to have a utility to bulk-update all files of a particular type or language and insert a comment at the top of the file.

Proposed feature evolution:

mbrukman commented 7 years ago

Given the in-place file modification was implemented, files can now be updated in bulk via:

find . -type f -name \*.sh -exec /path/to/autogen -i [options...] {} \;

So the v1 feature can be considered implemented. However, the tool will still prepend a license even if a license header already exists, so this operation is not idempotent as requested for v2.