#!/usr/bin/env ruby require 'dyndoc-convert' dyn_file=ARGV[0] full_dyn_file=File.expand_path(File.join(Dir.pwd,dyn_file)) full_dyn_file + '.dyn' unless full_dyn_file =~ /.*\.dyn$/ if File.exist? full_dyn_file Dyndoc.auto_convert_from_file(full_dyn_file) else puts "Error: #{full_dyn_file} does not exists" end