Sha256: 74bfa3eec39e3f0e2c1dfe93a4c3c362ae03157269dd7c0e4f203da9735e17a9

Contents?: true

Size: 511 Bytes

Versions: 17

Compression:

Stored size: 511 Bytes

Contents

#!/usr/bin/ruby -w

# Ensure we can find tpkg.rb
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")

# This script expects one argument, which is the tpkg.xml file
# that you want to convert to yml format.
# The resulting data is output to stdout
require 'tpkg'

if ARGV.size < 1
  raise "You didn't specify a file"
end

xmlfile =  ARGV[0]
if !File.exist?(xmlfile)
  raise "File doesn't exist"
end

metadata_text = File.read(xmlfile)
metadata = Metadata.new(metadata_text, 'xml')
metadata.write($stdout)

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tpkg-2.2.1 bin/tpkg_xml_to_yml
tpkg-2.2.0 bin/tpkg_xml_to_yml
tpkg-2.1.1 bin/tpkg_xml_to_yml
tpkg-2.1.0 bin/tpkg_xml_to_yml
tpkg-2.0.1 bin/tpkg_xml_to_yml
tpkg-2.0.0 bin/tpkg_xml_to_yml
tpkg-1.27.4 bin/tpkg_xml_to_yml
tpkg-1.27.3 bin/tpkg_xml_to_yml
tpkg-1.27.1 bin/tpkg_xml_to_yml
tpkg-1.25.1 bin/tpkg_xml_to_yml
tpkg-1.23.3 bin/tpkg_xml_to_yml
tpkg-1.23.2 bin/tpkg_xml_to_yml
tpkg-1.22.1 bin/tpkg_xml_to_yml
tpkg-1.21.1 bin/tpkg_xml_to_yml
tpkg-1.21.0 bin/tpkg_xml_to_yml
tpkg-1.20.0 bin/tpkg_xml_to_yml
tpkg-1.19.2 bin/tpkg_xml_to_yml