@@ -64,8 +64,6 @@ sub pre_workspace {
64
64
if (defined $$prjs [0]) {
65
65
my $fh = new FileHandle();
66
66
my $outdir = $self -> get_outdir();
67
- # my $fullpath = $$prjs[0];
68
- # $fullpath = "$outdir/$fullpath" unless ($fullpath =~ /^\/.+/ || $fullpath =~ /^[a-zA-Z]:.+/);
69
67
my $fullpath = is_absolute_path($$prjs [0]) ? $$prjs [0] : " $outdir /$$prjs [0]" ;
70
68
71
69
if (open ($fh , $fullpath )) {
@@ -142,7 +140,8 @@ sub create_integrity_project {
142
140
my $int_file = $int_proj ;
143
141
$int_file =~ s /\. gpj$/ .int/ ;
144
142
145
- if (open ($fh , " >$outdir /$int_proj " )) {
143
+ my $int_proj_path = is_absolute_path($int_proj ) ? $int_proj : " $outdir /$int_proj " ;
144
+ if (open ($fh , " >$int_proj_path " )) {
146
145
# # First print out the project file
147
146
print $fh " #!gbuild$crlf " ,
148
147
" \t $integrity$crlf " ,
@@ -154,7 +153,8 @@ sub create_integrity_project {
154
153
close ($fh );
155
154
156
155
# # Next create the integration file
157
- if (open ($fh , " >$outdir /$int_file " )) {
156
+ my $int_path = is_absolute_path($int_file ) ? $int_file : " $outdir /$int_file " ;
157
+ if (open ($fh , " >$int_path " )) {
158
158
print $fh " Kernel$crlf " ,
159
159
" \t Filename\t\t\t DynamicDownload$crlf " ,
160
160
" EndKernel$crlf$crlf " ,
@@ -183,12 +183,6 @@ sub mix_settings {
183
183
# If the project file path is already an absolute path, use it.
184
184
my $fullpath = is_absolute_path($project ) ? $project : " $outdir /$project " ;
185
185
186
- # if ($project =~ /^\/.+/ || $project =~ /^[a-zA-Z]:.+/) {
187
- # $fullpath = $project;
188
- # } else {
189
- # $fullpath = "$outdir/$project";
190
- # }
191
-
192
186
# # Things that seem like they should be set in the project
193
187
# # actually have to be set in the controlling project file.
194
188
if (open ($rh , $fullpath )) {
0 commit comments