/usr/share/debci/bin/debci-generate-history is in debci 1.7.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/ruby
require 'json'
require 'debci'
status_dir = ARGV[0]
output_file = ARGV[1]
data = Dir.glob(File.join(status_dir, '[0-9]*.json')).sort.map do |f|
File.open(f) { |s| JSON.load(s) }
end
File.open(output_file, 'w') do |f|
f.write(JSON.pretty_generate(data))
end
|