miller/docs6/morph
2021-06-25 23:22:32 -04:00

19 lines
312 B
Ruby
Executable file

#!/usr/bin/env ruby
while true
begin
line = $stdin.readline.chomp
rescue EOFError
break
end
if line =~ /GENRST_RUN_COMMAND{{.*}}HERE/
line.sub!("GENRST_RUN_COMMAND{{", "")
line.sub!("}}HERE", "")
puts 'GENRST_RUN_COMMAND'
puts line
puts 'GENRST_EOF'
else
puts line
end
end