2014-11-03 11:57:10 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
# encoding: UTF-8
|
|
|
|
|
2014-11-04 16:42:13 +00:00
|
|
|
require_relative 'log_generator'
|
2014-11-05 11:27:28 +00:00
|
|
|
require_relative 'parser'
|
2014-11-03 11:57:10 +00:00
|
|
|
|
2014-11-05 11:27:28 +00:00
|
|
|
def run_generator options
|
|
|
|
generator = LogGenerator.new(options)
|
2014-11-03 11:57:10 +00:00
|
|
|
|
2014-11-05 14:10:58 +00:00
|
|
|
prev_tag = generator.find_prev_tag
|
2014-11-03 11:57:10 +00:00
|
|
|
|
2014-11-05 14:10:58 +00:00
|
|
|
generator.compund_changelog(prev_tag)
|
2014-11-05 11:27:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
if __FILE__ == $0
|
|
|
|
|
|
|
|
options = Parser.new.options
|
|
|
|
run_generator(options)
|
2014-11-04 17:45:10 +00:00
|
|
|
end
|