Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Automatic conversion of SPDX license list HTML into rust enum #11

Open
Terkwood opened this issue May 20, 2020 · 0 comments
Open

Automatic conversion of SPDX license list HTML into rust enum #11

Terkwood opened this issue May 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Terkwood
Copy link
Owner

Terkwood commented May 20, 2020

Instead of tediously copy-pasting every license identifier from the source of truth into license.rs, we should just write a tiny utility that converts the HTML table into the rust enum.

<table class="sortable">
   <thead><tr>
   <th>Full name</th><th>Identifier</th><th>FSF Free/Libre?</th><th>OSI Approved?</th><th>Text</th>
   </tr></thead>
    
   <tbody>
   <tr>
   <td><a href="./0BSD.html" rel="rdf:_239">BSD Zero Clause License</a></td>
   <td about="./0BSD.html" typeof="spdx:License">
   <code property="spdx:licenseId">0BSD</code></td>
   <td style="text-align:center"></td>
   <td style="text-align:center">Y</td>
   <td><a href="./0BSD.html#licenseText">License Text</a></td>
   </tr>
   <tr>
   <td><a href="./AAL.html" rel="rdf:_60">Attribution Assurance License</a></td>
   <td about="./AAL.html" typeof="spdx:License">
   <code property="spdx:licenseId">AAL</code></td>
   <td style="text-align:center"></td>
   <td style="text-align:center">Y</td>
   <td><a href="./AAL.html#licenseText">License Text</a></td>
   </tr>
   <tr>
   <td><a href="./Abstyles.html" rel="rdf:_75">Abstyles License</a></td>
   <td about="./Abstyles.html" typeof="spdx:License">
   <code property="spdx:licenseId">Abstyles</code></td>
   <td style="text-align:center"></td>
   <td style="text-align:center"></td>
   <td><a href="./Abstyles.html#licenseText">License Text</a></td>
   </tr>
@Terkwood Terkwood added the enhancement New feature or request label May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant