diff --git a/_includes/using-sentence.html b/_includes/using-sentence.html new file mode 100644 index 0000000..94bea5f --- /dev/null +++ b/_includes/using-sentence.html @@ -0,0 +1,17 @@ +{% assign id = "/licenses/" | append: include.license-id %} +{% assign licenses = site.licenses | where:"id", id %} +{% for license in licenses %} + {% assign using = license.using %} + {% if using.size > 0 %} + {% for used in using limit: 3 %} + {% assign last = forloop.last %} + {% if last %} + and + {% endif %} + {% for hash in used %} + {{ hash[0] }}{% if last == false %},{% endif %} + {% endfor %} + {% endfor %} + use the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}. + {% endif %} +{% endfor %} diff --git a/_licenses/apache-2.0.txt b/_licenses/apache-2.0.txt index ef64e82..79c914a 100644 --- a/_licenses/apache-2.0.txt +++ b/_licenses/apache-2.0.txt @@ -10,6 +10,11 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license in the appendix. +using: + - Android: https://github.com/android/platform_system_core/blob/master/NOTICE + - Apache: https://svn.apache.org/viewvc/httpd/httpd/trunk/LICENSE?view=markup + - Swift: https://github.com/apple/swift/blob/master/LICENSE.txt + conditions: - include-copyright - document-changes diff --git a/_licenses/gpl-2.0.txt b/_licenses/gpl-2.0.txt index bf63275..23f940a 100644 --- a/_licenses/gpl-2.0.txt +++ b/_licenses/gpl-2.0.txt @@ -12,6 +12,10 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license. +using: + - Linux: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/COPYING + - WordPress: https://github.com/WordPress/WordPress/blob/master/license.txt + conditions: - include-copyright - document-changes diff --git a/_licenses/gpl-3.0.txt b/_licenses/gpl-3.0.txt index 6bbd713..e83cc53 100644 --- a/_licenses/gpl-3.0.txt +++ b/_licenses/gpl-3.0.txt @@ -12,6 +12,11 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license. +using: + - Bash: http://git.savannah.gnu.org/cgit/bash.git/tree/COPYING + - GIMP: https://git.gnome.org/browse/gimp/tree/COPYING + - Privacy Badger: https://github.com/EFForg/privacybadgerfirefox/blob/master/LICENSE + conditions: - include-copyright - document-changes diff --git a/_licenses/mit.txt b/_licenses/mit.txt index 61893d5..17ed29e 100644 --- a/_licenses/mit.txt +++ b/_licenses/mit.txt @@ -1,12 +1,17 @@ --- title: MIT License featured: true -source: http://opensource.org/licenses/MIT +source: https://opensource.org/licenses/MIT description: A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty. how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. +using: + - jQuery: https://github.com/jquery/jquery/blob/master/LICENSE.txt + - .NET Core: https://github.com/dotnet/corefx/blob/master/LICENSE + - Rails: https://github.com/rails/rails/blob/master/activerecord/MIT-LICENSE + conditions: - include-copyright diff --git a/index.html b/index.html index 24da896..5cdfa7e 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ permalink: / The MIT License is a permissive license that is short and to the point. It lets people do anything they want with your code as long as they provide attribution back to you and don’t hold you liable.
- jQuery, Rails and .NET Core use the MIT License. + {% include using-sentence.html license-id="mit" %}
- Apache, Swift, and Android use the Apache License 2.0. + {% include using-sentence.html license-id="apache-2.0" %}
- The GNU GPL (V2 or V3) is a copyleft license that requires anyone who distributes your code or a derivative work to make the source available under the same terms. V3 is similar to V2, but further restricts use in hardware that forbids software alterations. + The GNU GPLv3 is a copyleft license that requires anyone who distributes your code or a derivative work to make the source available under the same terms, and also provides an express grant of patent rights from contributors to users.
- WordPress, Linux, and Bash use the GNU GPL. + {% include using-sentence.html license-id="gpl-3.0" %}