From 3374e1450c18c33420f616f41ad7f884fdb4df21 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Mon, 7 Oct 2019 19:33:33 +0900 Subject: Write yaml and json under destdir and print to stdout --- tool/make-snapshot | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/make-snapshot b/tool/make-snapshot index ecc3cd53d2..666fd1da84 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -628,8 +628,16 @@ revisions.collect {|rev| package(vcs, rev, destdir, tmp)}.flatten.each do |name| end end -File.write('info.yml', info.values.to_yaml) -File.write('info.json', info.values.to_json) +yaml = info.values.to_yaml +json = info.values.to_json +puts "#{$colorize.pass('JSON:')}" +puts yaml +puts "#{$colorize.pass('YAML:')}" +puts json +infodir = Pathname(destdir) + 'info' +infodir.mkpath +(infodir+'info.yml').write(yaml) +(infodir+'info.json').write(json) exit false if !success -- cgit v1.2.3