JS: Have bin/update_binformat.js write to stdout instead of disk.

Since ripple-lib now lives outside of the NewCoin repository it's easiest to just print to stdout and let the user worry about redirecting it to wherever their ripple-lib repository lives.
This commit is contained in:
Stefan Thomas
2013-04-29 11:03:59 +02:00
parent 192dc2e85c
commit 30ea18d916

View File

@@ -13,9 +13,7 @@
var filenameProto = __dirname + '/../src/cpp/ripple/SerializeProto.h',
filenameTxFormatsH = __dirname + '/../src/cpp/ripple/TransactionFormats.h',
filenameTxFormats = __dirname + '/../src/cpp/ripple/TransactionFormats.cpp',
filenameOut = __dirname + '/../src/js/binformat.js';
filenameTxFormats = __dirname + '/../src/cpp/ripple/TransactionFormats.cpp';
var fs = require('fs');
@@ -117,5 +115,5 @@ removeFinalComma(output);
output.push('};');
output.push('');
fs.writeFileSync(filenameOut, output.join('\n'));
console.log(output.join('\n'));