Sha256: 2e3c7d7ff148d47b4106e4a439222192eb757bec9d2c2cc28c8ae18194a5ccd1
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
#!/usr/bin/ruby -w ############################################################################## # tpkg package management system # Copyright 2009, 2010, 2011 AT&T Interactive # License: MIT (http://www.opensource.org/licenses/mit-license.php) ############################################################################## # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tpkg-2.2.4 | bin/tpkg_xml_to_yml |
tpkg-2.2.3 | bin/tpkg_xml_to_yml |
tpkg-2.2.2 | bin/tpkg_xml_to_yml |