jeremiah / spdxl

spdxl (pronounced spud-exel) is a tool that attempts to identify FOSS licenses and corresponding files associated with them based on SPDX tags.
https://jeremiah.github.io/spdxl
GNU General Public License v3.0
1 stars 1 forks source link
spdx

forthebadge forthebadge REUSE Compliance Check

spdxl

This is mostly just a toy.

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.

standard-readme compliant

Install

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.

Usage

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.

Bugs

Please use 'issues' on GitHub for spdxl.

Contribute

Patches and pull requests are welcomed.

See also

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

Copyright and License

Copyright (c) 2015 Jeremiah C. Foster

Source code licensed under the GPLv3