summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2020-01-08 18:26:17 -0800
committerRuss Allbery <rra@cpan.org>2020-01-08 18:26:17 -0800
commitdcd4055cb3b9cdd7e4b33898c2718acb83abfe20 (patch)
tree38f229835c47aa7dc475b3ebcd0fc78123c5bb86
parent565c5a7f0f6fc0388dbf03fd905e5b22a061c853 (diff)
Add license badge for CPAN packages
For CPAN packages pushed to GitHub, add a license badge to the Markdown README file.
-rw-r--r--Changes5
-rw-r--r--README.md1
-rw-r--r--share/templates/readme-md.tmpl2
3 files changed, 7 insertions, 1 deletions
diff --git a/Changes b/Changes
index 5bf84a0..c6fa7a2 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
User-Visible DocKnot Changes
+DocKnot 3.03 (unreleased)
+
+ For CPAN packages pushed to GitHub, add a license badge to the
+ Markdown README file.
+
DocKnot 3.02 (2020-01-08)
Add support for the No Maintenance Intended badge in the Markdown
diff --git a/README.md b/README.md
index 39a84cb..351b406 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@
status](https://travis-ci.org/rra/docknot.svg?branch=master)](https://travis-ci.org/rra/docknot)
[![CPAN
version](https://img.shields.io/cpan/v/App-DocKnot.svg)](https://metacpan.org/release/App-DocKnot)
+[![License](https://img.shields.io/cpan/l/App-DocKnot)](https://github.com/rra/docknot/blob/master/LICENSE)
Copyright 2013-2020 Russ Allbery <rra@cpan.org>. This software is
distributed under a BSD-style license. Please see the section
diff --git a/share/templates/readme-md.tmpl b/share/templates/readme-md.tmpl
index bb8388c..50712bc 100644
--- a/share/templates/readme-md.tmpl
+++ b/share/templates/readme-md.tmpl
@@ -2,7 +2,7 @@
[% IF vcs.travis || distribution.cpan || orphaned %]
[% IF orphaned %][![No maintenance intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/) [% END -%]
[% IF vcs.travis %][![Build status](https://travis-ci.org/[% vcs.travis %].svg?branch=master)](https://travis-ci.org/[% vcs.travis %]) [% END -%]
-[% IF distribution.cpan %][![CPAN version](https://img.shields.io/cpan/v/[% distribution.cpan %].svg)](https://metacpan.org/release/[% distribution.cpan %])[% END -%]
+[% IF distribution.cpan %][![CPAN version](https://img.shields.io/cpan/v/[% distribution.cpan %].svg)](https://metacpan.org/release/[% distribution.cpan %])[% IF vcs.github %] [![License](https://img.shields.io/cpan/l/[% distribution.cpan %])](https://github.com/[% vcs.github %]/blob/master/LICENSE)[% END %][% END -%]
[% END %]
[% FOREACH copr IN copyrights %]Copyright [% copr.years %]