#!/usr/bin/env ruby # encoding: UTF-8 # resolve bin path, ignoring symlinks require "pathname" bin_file = Pathname.new(__FILE__).realpath # add self to libpath $:.unshift File.expand_path("../../lib", bin_file) require "bundler/setup" require "stepmod/utils/smrl_resource_converter" ReverseAdoc.config.unknown_tags = :bypass input_content = ARGF.read result = Stepmod::Utils::SmrlResourceConverter.convert(input_content, {}) result.split("\n").each do |line| $stdout.puts(line) $stdout.flush rescue Errno::EPIPE exit(74) end