Commits

Shlomi Fish committed 7a42de6

Add and extract the x11_licence tag.

It is meant to extract the common "This software is under the MIT/X11 Licence"
blurbs from the pages.

  • Participants
  • Parent commits 745b6dc

Comments (0)

Files changed (9)

File lib/utils.wml

 
 </define-tag>
 
-
 <define-tag cc_by_hebrew_blurb>
 <preserve year />
 <set-var %attributes />
 
 </define-tag>
 
+<define-tag x11_licence>
 
+<preserve name plural />
+
+<h2 id="licence">Licence</h2>
+
+<p>
+<get-var name /> <if "<get-var plural />" "are" "is" /> free and open-source software (FOSS) distributed
+under <a href="http://en.wikipedia.org/wiki/MIT_License">the MIT/X11
+License</a>, a permissive, public-domain-like, software licence.
+</p>
+
+<restore name plural />
+
+</define-tag>
 
 <define-tag main_email whitespace="delete">
 shlomif@shlomifish.org

File t2/open-source/projects/File-Dir-Dumper/index.html.wml

 
 </ul>
 
-<h2 id="licence">Licence</h2>
-
-<p>
-File-Dir-Dumper is original work and is subject to the terms of the
-<a href="http://en.wikipedia.org/wiki/MIT_License">MIT/X11
-Licence</a>, which is a Public Domain-like open-source licence.
-</p>
+<x11_licence name="File-Dir-Dumper" />

File t2/open-source/projects/Module-Format/index.html.wml

     freecode_url="http://freecode.com/projects/module-format">
 </bitbucket_cpan_dist_links >
 
-<h2 id="licence">Licence</h2>
-
-<p>
-Module-Format is licensed under the
-<a href="http://en.wikipedia.org/wiki/MIT_License">MIT/X11 licence</a>
-</p>
+<x11_licence name="Module-Format" />
 
 <h2 id="news">News</h2>
 

File t2/open-source/projects/Test.pm-Converter/index.html.wml

 Patches for some of these would be welcome.
 </p>
 
-<h2 id="licence">Licence</h2>
-
-<p>
-Test.pm-to-Test-More.pl is licensed under the
-<a href="http://en.wikipedia.org/wiki/MIT_License">MIT/X11 licence</a>
-</p>
+<x11_licence name="Test.pm-to-Test-More.pl" />
 
 <h2 id="news">News</h2>
 

File t2/open-source/projects/XML-Grammar/Fiction/index.html.wml

     bitbucket_url="https://bitbucket.org/shlomif/fiction-xml">
 </bitbucket_cpan_dist_links>
 
-<h2 id="licence">Licence</h2>
-
-<p>
-<get-var cpan_dist /> is free and open-source software (FOSS) distributed
-under <a href="http://en.wikipedia.org/wiki/MIT_License">the MIT/X11
-License</a>, a permissive, public-domain-like licence.
-</p>
+<x11_licence name="<get-var cpan_dist />" />
 
 <h2 id="examples">Examples</h2>
 

File t2/open-source/projects/black-hole-solitaire-solver/index.html.wml

 </li>
 </ul>
 
-<h2 id="licence">Licence</h2>
-
-<p>
-The solver is original work and is subject to the terms of the
-<a href="http://en.wikipedia.org/wiki/MIT_License">MIT/X11
-licence</a>, which is a Public Domain-like open-source licence.
-</p>
+<x11_licence name="The Black Hole Solitaire Solver" />
 
 <h2 id="news">News</h2>
 

File t2/open-source/projects/docmake/index.html.wml

 
 </ul>
 
-<h2 id="licence">Licence</h2>
-
-<p>
-Docmake is freely available under the <a href="http://en.wikipedia.org/wiki/MIT_License">MIT/X11 Licence</a>.
-</p>
+<x11_licence name="Docmake" />
 
 <h2 id="news">News</h2>
 

File t2/open-source/projects/japanese-puzzle-games/abc-path/index.html.wml

 
 </ul>
 
-
-<h2 id="licence">Licence</h2>
-
-<p>
-<get-var modname /> and <get-var gen_modname /> are licensed under the
-<a href="http://en.wikipedia.org/wiki/MIT_License">MIT/X11 licence</a>.
-</p>
+<x11_licence name="<get-var modname /> and <get-var gen_modname />" plural="1" />
 
 <h2 id="news">News</h2>
 

File t2/open-source/projects/japanese-puzzle-games/kakurasu/index.html.wml

 </li>
 </ul>
 
-<h2 id="licence">Licence</h2>
-
-<p>
-The solver is original work and is subject to the terms of the
-<a href="http://en.wikipedia.org/wiki/MIT_License">MIT/X11
-licence</a>, which is a Public Domain-like open-source licence.
-</p>
-
+<x11_licence name="The Kakurasu Solver" />