Something
public text v1 · immutable#!/usr/bin/ruby
xml = File.new("test.xml","w")
["snd","gfx"].each { |rep|
Dir.new(rep).each { |file|
next if (file == "." or file == "..")
xml.write "<clip id=\"#{file}\" import=\"./#{rep}/#{file}\"/>\n"
}
}