Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rogerluo410/license-extractor
license-extractor
https://github.com/rogerluo410/license-extractor
Last synced: 5 days ago
JSON representation
license-extractor
- Host: GitHub
- URL: https://github.com/rogerluo410/license-extractor
- Owner: rogerluo410
- Created: 2015-03-31T09:38:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-11T08:47:31.000Z (over 9 years ago)
- Last Synced: 2023-08-03T07:52:11.322Z (over 1 year ago)
- Language: Ruby
- Size: 203 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# license-extractor
This repo is going to improve working efficiency for finding packages' license. It almost replaces searching license on Internet manually now.
If a repository is one of based on Ruby,Go,Jave language, as long as providing Github URL of the repository and marking what kind of language as main language it is, the tool can extract its the third dependent packages' license info automatically.
Currently, it has been implemented for ruby's repo, Go and Java are pending.
###For example
- ***Writing a certain repository Github URL into input file `url_list.txt`, the format as follows:***
```
ruby,https://raw.githubusercontent.com/cloudfoundry/cloud_controller_ng/master/Gemfile.lock
ruby,https://raw.githubusercontent.com/cloudfoundry-attic/vcap-services-base/master/Gemfile.lock
ruby,https://raw.githubusercontent.com/cloudfoundry/ibm-websphere-liberty-buildpack/master/Gemfile.lock
go,https://github.com/cloudfoundry/cli
.
.
.
```
Note also that it must provide gemfile's url like this `https://raw.githubusercontent.com/cloudfoundry/cloud_controller_ng/master/Gemfile.lock` for ruby repository.- ***Run the tool:***
The current solution is that running a shell script to execute every single task.
The command is `./boot.sh url_list.txt`, before running it `chmod u+x boot.sh`- ***Output file***
Output file is named by repo's name appending ‘_output’ string behind the name. its content is like this:
```
builder,3.2.2,MIT,https://rubygems.org/gems/builder/versions/3.2.2
beefcake,1.0.0,MIT,https://rubygems.org/gems/beefcake/versions/1.0.0
CFPropertyList,2.3.0,MIT,https://rubygems.org/gems/CFPropertyList/versions/2.3.0
i18n,0.7.0,MIT,https://rubygems.org/gems/i18n
.
.
.
```###The whole process
step 1 : `bundle install`
step 2 : `chmod u+x boot.sh`
step 3 : run `./boot.sh url_list.txt`
step 4 : watching output files in same directory.