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:
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 toautogen.sh
testdata/<feature>.out
- expected stdout for the testtestdata/<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.
make test
will process all files in testdata/
and tell you which
passed or failed.
Apache 2.0; see LICENSE.txt for details.