about summary refs log tree commit diff stats
path: root/.gitignore
blob: 1ca77eb3bad4ff838d2ca8642b116fe3058574e1 (plain) (blame)
1
2
3
4
5
6
build/
builds/
assets/LL1.yaml
assets/ids.yaml
.DS_Store
.vs
"nb">require 'yaml' mappath = ARGV[0] outputpath = ARGV[1] panels = [] File.readlines(mappath).each do |line| line.match(/node name=\"(.*)\" parent=\"Panels\/(.*)\" instance/) do |m| panels << {"id" => m[2] + "/" + m[1]} end end File.write(outputpath, panels.to_yaml)