Sha256: 5afa99f120121e40861c7f686cdd1885b495a500104a9345d4b5d1ed7207b4d7
Contents?: true
Size: 634 Bytes
Versions: 4
Compression:
Stored size: 634 Bytes
Contents
#! /usr/bin/env ruby libpath = File.absolute_path(File.dirname(__FILE__))+"/../../../../lib" $LOAD_PATH.unshift libpath require "erbpp/narray_def" while true if ARGV[0] == "-l" require "erbpp/line_number" ARGV.shift elsif ARGV[0] == "-o" ARGV.shift $output = ARGV.shift require "fileutils" FileUtils.rm_f($output) else break end end unless (1..2) === ARGV.size puts "usage:\n ruby #{$0} [-l] erb_path [type_file]" exit 1 end erb_path, type_file = ARGV if $output s = DataType.new(erb_path, type_file).result open($output,"w").write(s) else DataType.new(erb_path, type_file).run end
Version data entries
4 entries across 4 versions & 1 rubygems