Skip to content
forked from mbrukman/autogen

Automatically generate boilerplate license comments.

License

Notifications You must be signed in to change notification settings

yebrahim/autogen

Repository files navigation

autogen

Automatically generate boilerplate comments and code for new files with a single command.

Usage:

autogen.sh -c [copyright holder] -l [license] [filename]

To get a list of supported licenses, run autogen.sh with no parameters.

File type or language is determined based on the full filename or extension, as appropriate. See autogen.sh for a list of recognized file types.

Sample outputs:

Developing

To add a few file type or feature, change autogen.sh and add several files to the testdata/ directory, namely:

  • testdata/<feature>.in - the input file containing command-line args to pass to autogen.sh
  • testdata/<feature>.out - expected stdout for the test
  • testdata/<feature>.err - expected stderr for the test

To generate the *.out and *.err files automatically, just add the *.in files and run make regen. Then, examine the resulting *.out and *.err files.

Testing

make test will process all files in testdata/ and tell you which passed or failed.

License

Apache 2.0; see LICENSE.txt for details.

About

Automatically generate boilerplate license comments.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 53.1%
  • Python 17.7%
  • Ruby 13.5%
  • Perl 5.7%
  • Emacs Lisp 3.7%
  • Vim Script 2.7%
  • Other 3.6%