spdxl (pronounced spud-exel) is a tool that checks source code looking for a SPDX version 2.0 "tag" and produces a text-based output on the command line. Designed to be used in conjunction with Debian's licensecheck it provides a way to ensure that all the files are correctly licensed and that you can created a complete SPDX document.
To install spdxl follow this incantation;
perl Makefile.PL
make
sudo make install
The last command may require sudo to allow you to install software on your system. This has been tested on a Debian GNU/Linux system but should work on most UNIX systems or OSes that have perl.
The easiest way to use this is to call perl and spdxl.pl like this
perl spdxl.pl -d ./ -c
That uses the -d argument since spdxl needs a directory to read from (and the following "./" is the directory to read.) Then I've passed the -c flag to have colored output. The -c flag is optional. The -d flag is not. Call perldoc spdxl
for more usage info.
Please use 'issues' on GitHub for spdxl.
Patches and pull requests are welcomed.
ninka lint-bom reuse The reuse tool also has an action as well.
You can get tools that convert tags to spreadsheets here: https://github.com/goneall/SPDX-Tools
- The image embedded in this page is being used as a SPEC: https://spdx.org/tools
- SPDX license data as JSON is here: http://spdx.org/licenses/licenses.json Might be fun to parse this and create a prettier HTML dump via Angular or similar.
Copyright (c) 2015 Jeremiah C. Foster
Source code licensed under the GPLv3