| Age | Commit message (Collapse) | Author |
|
This makes the configuration more concise where pattern can be split
into multi lines.
While at it, add more pattern to match-file-comment.
|
|
If the line that match with pattern on match-copyright does not contains
year, or there is no match, try to get the year from the first commit of
the file using "git log --follow ..." command.
If no commit history or its not using git, use default copyright year from
configuration.
|
|
While at it, also add configuration for delete line before and after
for match-copyright section.
|
|
The line that match with pattern will be replaced with new SPDX license
identifier, so no need to guard it with this flag.
|
|
The scan command scan the files that need to be converted or inserted with
SPDX identifiers in the current directory.
The result of scan is stored inside a report file named "spdxconv.report".
There are no other files modified after scan completed.
User then can inspect and modify the report to exclude certain files or
changes the behaviour of apply command.
Deleting a line in the report means excluding the file from being
processed by "apply" command.
|
|
The init command create the spdxconv configuration file in the current
directory.
|
|
Ah, the irony.
|
|
If the file X has another file named "X.license" in the same directory,
exclude it for being processed.
The ".license" is SPDX specific file that contains only SPDX identifiers.
|
|
This is the initial implementation, work in progress, with the following
functions,
* loading the spdxconv.cfg file
* scanning list of files to be converted
* detect .git repository and exclude files ignored by .gitignore
No conversion logic is implemented yet.
|