I have created new tool license-validate:
https://pagure.io/copr/license-validate/ I've written something relatively
similar a few years back (
https://github.com/suve/vrms-rpm).
I took a look at the code - using a proper parser is definitely a better solution than the
error-prone,
manual matching happening in my program. May be a good idea for some v3.0. ;)
My personal suggestion would be to add a "line by line" mode for interactive
usage,
so instead of:
$ license-validate --verbose "First"
$ license-validate --verbose "Second"
one could do something like:
$ license-validate --stdin < licenses.txt
A.FI.