diff options
Diffstat (limited to 'solenv/bin/build.pl')
-rw-r--r--[-rwxr-xr-x] | solenv/bin/build.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/solenv/bin/build.pl b/solenv/bin/build.pl index d7bc7df26442..987d7fbb5bea 100755..100644 --- a/solenv/bin/build.pl +++ b/solenv/bin/build.pl @@ -234,7 +234,7 @@ if (defined $html_path) { $html_file = CorrectPath($html_path . '/' . $ENV{INPATH}. '.build.html'); } else { - my $log_directory = Cwd::realpath(CorrectPath($StandDir . '/../log')); + my $log_directory = Cwd::realpath(CorrectPath($StandDir . '/..')) . '/log'; if ((!-d $log_directory) && (!mkdir($log_directory))) { print_error("Cannot create $log_directory for writing html file\n"); }; @@ -1150,8 +1150,8 @@ sub get_stand_dir { print_error('Found no project to build'); }; $initial_module = substr($initial_dir, length($StandDir) + 1); - if ($initial_module =~ /\\|\//) { - $initial_module = File::Basename::dirname($initial_module); + if ($initial_module =~ /(\\|\/)/) { + $initial_module = $`; }; $module_paths{$initial_module} = $StandDir . "/$initial_module"; # $build_list_paths{$initial_module} =$StandDir . '/prj/'.$_; |