docs: convert NEWS to CHANGELOG.md

This commit is contained in:
Francis Lachapelle
2021-03-25 16:44:20 -04:00
parent a98fe2f850
commit bbf0ff79e8
7 changed files with 2334 additions and 2323 deletions

View File

@@ -0,0 +1,10 @@
module.exports.readVersion = function (contents) {
console.debug('readVersion = ' + contents.match(/([0-9]+)/mg).join('.'));
return contents.match(/([0-9]+)/mg).join('.');
};
module.exports.writeVersion = function (contents, version) {
console.debug('writeVersion = ' + version);
const versions = version.split('.');
return "MAJOR_VERSION=" + versions[0] + "\nMINOR_VERSION=" + versions[1] + "\nSUBMINOR_VERSION=" + versions[2];
};