miller/docs/src/morph
2021-11-06 12:57:24 -04:00

19 lines
308 B
Ruby
Executable file

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