Scancode-toolkit 在windows上的简单经验
简单记录
这是个用来扫描copyright和license的工具
文档维护的有问题, 所以我们自己记录一下
- 下载解压
下载的时候, 不要跟着wiki文档的链接去下载, 从首页的last release进去就好
我没细看, 好像开始支持python3了, 但是我还是特地安装了python2.7 - 使用git bash运行(对我来说最关键的一步)
因为部分脚本是bash的, 也许不必如此, 不过我这么做之后才解决了问题
使用git bash打开, 切换到目标目录 - 配置
运行./configure执行名字叫做configure的脚本 - 确认配置ok
先执行./scancode -h看看帮助能否出来
执行./scancode -html samples.html samples, 这个是扫描以下samples目录, 执行的记录应该要如下
$ ./scancode --html samples.html samples
Setup plugins...
Collect file inventory...
Scanning done.
Summary: with 1 process(es)
Errors count: 0
Scan Speed: 0.00 files/sec.
Initial counts: 44 resource(s): 33 file(s) and 11 directorie(s)
Final counts: 44 resource(s): 33 file(s) and 11 directorie(s)
Timings:
scan_start: 2019-11-07T130119.358000
scan_end: 2019-11-07T130119.401000
total: 0.14s
Removing temporary files...done.
- 执行你的扫描
参考命令行./scancode --html samples.html /g/work/rnnoise/, (注意这里可能稍微会话费一点时间)