This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var usage_description = "Usage: node create_changelog.js MyChangelog.txt \"Changelog for nightly build version 0.9.0.1\""; | |
var args = ParseArguments(); | |
var spawn = require('child_process').spawn; | |
var fs = require('fs'); | |
var prc = spawn('git', ['describe', '--tags', '--abbrev=0']); | |
prc.stdout.setEncoding('utf8'); | |
prc.stdout.on('data', function (data) { | |
var str = data.toString(); | |
var lines = str.split(/(\r?\n)/g); |