From 30ea18d916b9becf2086ad5e85ec479ea9f86b1b Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Mon, 29 Apr 2013 11:03:59 +0200 Subject: [PATCH] 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. --- bin/update_binformat.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/update_binformat.js b/bin/update_binformat.js index 1f30d7be5..7987f72c8 100644 --- a/bin/update_binformat.js +++ b/bin/update_binformat.js @@ -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'));