mirror of
				https://github.com/Xahau/xahaud.git
				synced 2025-11-04 10:45:50 +00:00 
			
		
		
		
	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:
		@@ -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'));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user