#!/usr/bin/env ruby path = `rubytext path` examples = path + "/../examples" rc = system("ruby #{examples}/check.rb") exit unless rc # FIXME # - use names instead of numbers? # - convert rt-show into a method? 1.upto(19) do |n| num = '%02d' % n prog = "examples/prog#{num}.rb" system("ruby #{examples}/showme.rb #{prog}") end