open source license scanner (heuristic, regular expression matches in subdirs) [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
开发者_JS百科Closed 7 years ago.
Improve this questionAssume you have a small collection of WebCMS assembled, subdirs in ~/www/test/ or so. And now you want to quickly/crude scan and detect the license in each project.
Is there a simple grep/perl/regex scanner which can guess the used licenses? Doesn't need to be exact or reliable, just for getting a rough overview, and just needs to inspect directory-wise.
ohcount, the tool http://ohloh.net/ uses to extract various metrics like number of lines per programming language from source code, also happens to have quite a lot of seemingly good heuristics to detect licenses. I haven't used it myself, but it seems to be exactly what you're looking for.
精彩评论