Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (8 sloc) 340 Bytes
#!/usr/bin/env ruby
require 'rubygems'
require 'plist'
require 'yaml'
result = Plist::parse_xml( ARGV[0] )
standard_name = File.basename( ARGV[0] ).downcase.gsub(/\s+/, '_').gsub(/\.(plist|tm[Ll]anguage)/, '').gsub(/\(|\)|:/, '').gsub(/_+/, '_')
puts standard_name
File.open( "#{standard_name}.yaml", "w" ) {|f| YAML.dump( result, f ) }