ライセンステキストの判別補助コマンド
- GitHub / amzn / askalono
Flex のライセンス条文を目にしたのだが、ぱっと見 BSD-2-Clause かなと思いきや、なんか違和感が。
こういうの毎回 diff するのも面倒だし、判別コマンド作ったほうが良くないか?と思ったが、
いやいや、絶対、誰が作ってるだろと思って以下で検索して発見。 この他にも fossology, google/licensecheck, Debian - licensecheck 等も見つけた。
判別結果
こういうの毎回 diff するのも面倒だし、判別コマンド作ったほうが良くないか?と思ったが、
いやいや、絶対、誰が作ってるだろと思って以下で検索して発見。 この他にも fossology, google/licensecheck, Debian - licensecheck 等も見つけた。
判別結果
wget -q https://github.com/spdx/license-list-data/raw/master/text/GPL-2.0-only.txt wget -q https://github.com/spdx/license-list-data/raw/master/text/GPL-3.0-only.txt wget -q https://github.com/spdx/license-list-data/raw/master/text/GPL-2.0-or-later.txt wget -q https://github.com/spdx/license-list-data/raw/master/text/GPL-3.0-or-later.txt wget -q https://github.com/spdx/license-list-data/raw/master/text/MIT.txt wget -q https://github.com/spdx/license-list-data/raw/master/text/BSD-2-Clause.txt wget -q https://github.com/spdx/license-list-data/raw/master/text/BSD-3-Clause.txt wget -q https://github.com/westes/flex/raw/master/COPYING -O flex.txt
$ for i in *.txt; do echo "$i:"; askalono id "$i" |& sed 's/^/\t/g'; done BSD-2-Clause.txt: License: BSD-2-Clause (original text) Score: 1.000 BSD-3-Clause.txt: License: BSD-3-Clause (original text) Score: 1.000 flex.txt: Error: Confidence threshold not high enough for any known license GPL-2.0-only.txt: License: GPL-2.0-only (original text) Score: 1.000 Aliases: GPL-2.0-or-later GPL-2.0-or-later.txt: License: GPL-2.0-only (original text) Score: 1.000 Aliases: GPL-2.0-or-later GPL-3.0-only.txt: License: GPL-3.0-only (original text) Score: 0.997 Aliases: GPL-3.0-or-later GPL-3.0-or-later.txt: License: GPL-3.0-only (original text) Score: 0.997 Aliases: GPL-3.0-or-later MIT.txt: License: MIT (original text) Score: 0.961
$ askalono id -o flex.txt Error: Confidence threshold not high enough for any known license
タグ
コメントをかく