diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2014-11-20 15:06:08 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2014-11-20 15:06:08 +0000 |
commit | 029b0a0b9154ae9f4da0497aa6a0071539adf293 (patch) | |
tree | 03104a895037bb261ab7fda5908e5f308bef2bf7 /modules/VC8WorkspaceCreator.pm | |
parent | 29b8ac8d4633a504dbe987b14fe8120e96cd5058 (diff) | |
download | MPC-029b0a0b9154ae9f4da0497aa6a0071539adf293.tar.gz |
ChangeLogTag: Thu Nov 20 15:05:35 UTC 2014 Chad Elliott <elliott_c@ociweb.com>ACE+TAO+CIAO-6_3_1
Diffstat (limited to 'modules/VC8WorkspaceCreator.pm')
-rw-r--r-- | modules/VC8WorkspaceCreator.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/VC8WorkspaceCreator.pm b/modules/VC8WorkspaceCreator.pm index 0fdb64e4..94c29e06 100644 --- a/modules/VC8WorkspaceCreator.pm +++ b/modules/VC8WorkspaceCreator.pm @@ -80,13 +80,14 @@ sub post_workspace { foreach my $project (@projects) { my $ph = new FileHandle(); my $outdir = $self->get_outdir(); - $outdir = $self->getcwd() if ($outdir eq '.'); - if (open($ph, $self->path_is_relative($project) ? - "$outdir/$project" : $project)) { + my $cwd = $self->getcwd(); + $outdir = $cwd if ($outdir eq '.'); + my $full = $self->path_is_relative($project) ? + "$outdir/$project" : $project; + if (open($ph, $full)) { my $write; my @read; my $crlf = $self->crlf(); - my $cwd = $self->getcwd(); my $lang = $$pjs{$project}->[ProjectCreator::LANGUAGE]; my $managed = $$pjs{$project}->[ProjectCreator::MANAGED_PROJECT]; @@ -99,8 +100,7 @@ sub post_workspace { my $deps = $self->get_validated_ordering($project); foreach my $dep (@$deps) { my $relative = $self->get_relative_dep_file($creator, - "$cwd/$project", - $dep); + $full, $dep); if (defined $relative) { $relative =~ s!/!\\!g; @@ -162,7 +162,7 @@ sub post_workspace { close($ph); ## If we need to re-write the file, then do so - if ($write && open($ph, ">$outdir/$project")) { + if ($write && open($ph, ">$full")) { foreach my $line (@read) { print $ph $line; } |