diff --git a/import_problem b/import_problem --- a/import_problem +++ b/import_problem @@ -5,6 +5,7 @@ # * copy testdata in the old format and create standard testcase config file require 'erb' +require 'fileutils' def input_filename(dir,i) "#{dir}/input-#{i}.txt" @@ -34,15 +35,18 @@ end end -GRADER_DIR = File.dirname(__FILE__) +SCRIPT_DIR = File.dirname(__FILE__) # print usage if ARGV.length < 3 - puts "using: import_problem prob_name importing_testcase_dir num_of_testcase [options] + puts <