From 789076cb1d3f4e99691be10584a74431f1840ca4 Mon Sep 17 00:00:00 2001 From: Peter Soetens Date: Fri, 26 Nov 2010 13:17:35 +0100 Subject: [PATCH 2/3] typegen: use typekit name as output dir if -o was not given. We got an exception if no -o option was given. Do the sane thing. Signed-off-by: Peter Soetens --- bin/typegen | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/bin/typegen b/bin/typegen index 6c17a18..087fbe0 100755 --- a/bin/typegen +++ b/bin/typegen @@ -67,6 +67,10 @@ if remaining.size < 2 exit(1) end +if !typekit.automatic_dir + typekit.automatic_dir= File.expand_path(remaining[0]) +end + Orocos::Generation.generation_directory = Dir.pwd Orocos::Generation.relative_generation_directory = Pathname.new(Dir.pwd).relative_path_from(Pathname.new(typekit.automatic_dir)) -- 1.7.0.4