extract_amendments.rb 273 Bytes
Newer Older
Michael Witrant's avatar
Michael Witrant committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/usr/bin/env ruby

require 'rubygems'
require 'bundler/setup'
require 'zippy'


opendocument_path = ARGV.first
raise "usage: #$0 <OpenDocument file>" unless opendocument_path

xml = nil
Zippy.open(opendocument_path) do |zip|
  xml = zip['content.xml']
end

puts xml.size