Sha256: b0ad46370e9f3b4437be039cf33dc6e0934261f6b81508e316e7c23bd8ef0a1c

Contents?: true

Size: 650 Bytes

Versions: 16

Compression:

Stored size: 650 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
require 'optparse'
require 'ostruct'
require 'recog'

# Cleanup trailing whitespace around fingerprints
Dir[ File.expand_path(File.join(File.dirname(__FILE__), "..", "xml")) + "/*.xml" ].each do |f|
    data = File.read(f).
        gsub(/\s+$/, '').                           # Trailing whitespace and empty lines
        gsub("</fingerprint>", "</fingerprint>\n"). # Every fingerprint should have an empty line after it
        gsub("-->", "-->\n")                        # Every comment should have an empty line after it

    File.write(f, data)
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
recog-2.3.23 bin/recog_cleanup
recog-2.3.22 bin/recog_cleanup
recog-2.3.21 bin/recog_cleanup
recog-2.3.20 bin/recog_cleanup
recog-2.3.19 bin/recog_cleanup
recog-2.3.18 bin/recog_cleanup
recog-2.3.17 bin/recog_cleanup
recog-2.3.16 bin/recog_cleanup
recog-2.3.15 bin/recog_cleanup
recog-intrigue-2.3.14 bin/recog_cleanup
recog-2.3.14 bin/recog_cleanup
recog-2.3.13 bin/recog_cleanup
recog-2.3.12 bin/recog_cleanup
recog-2.3.11 bin/recog_cleanup
recog-2.3.10 bin/recog_cleanup
recog-2.3.9 bin/recog_cleanup