-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Automate the process of updating the PB License files at each new PureBasic release.
- Create a tool to automate updating the PB License files in this repo.
- Publish its source somewhere (even the project Wiki)
- Add to the project Wiki instructions on how to use it.
Manually updating the PB License files with each new PureBasic release is a cumbersome work involving copying and pasting the licenses from their HTML document to the plain text file.
The process could be automated by creating a small tool that:
- Obtains the HTML license files, by either:
- Extracting the licenses from the CHM Help file.
- Downloading them from the on-line help via cURL.
- In either case, the license is inside a
<pre>block, so extracting it should fairly easy and won't require HTML tag removals. - Process the extracted licenses:
- Remove trailing spaces.
- Enforce a single empty line at end of file (for licenses concatenation).
- Deploy the extracted licenses to the repository root.
To spare some time, it might actually be better to first diff the extracted raw HTML files from then PB version with previous ones, to check if there are actually any changes, before beginning the process and deploy stages.
Creating this tool should be fairly straight forward, and could be done even in PB. I should then decide where to host it pubblicly (I might even store the source file inside the project Wiki, along with an instructions page).