Subversion Repositories DevTools

Rev

Rev 227 | Rev 241 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 227 Rev 237
Line 5026... Line 5026...
5026
    #
5026
    #
5027
    #   Take the project name and convert it into a full path
5027
    #   Take the project name and convert it into a full path
5028
    #
5028
    #
5029
    my $project = MakeSrcResolve ( $proj );
5029
    my $project = MakeSrcResolve ( $proj );
5030
    $proj = StripDir( $project );
5030
    $proj = StripDir( $project );
-
 
5031
    Error ("Project File Not found: $project") unless ( -f $project );
5031
 
5032
 
5032
    my $basedir = StripFileExt( $project );
5033
    my $basedir = StripFileExt( $project );
5033
 
5034
 
5034
    #
5035
    #
5035
    #   Collect user arguments
5036
    #   Collect user arguments
Line 5214... Line 5215...
5214
    #   Take the project name and convert it into a full path
5215
    #   Take the project name and convert it into a full path
5215
    #
5216
    #
5216
    my $project;
5217
    my $project;
5217
    $project = MakeSrcResolve ( $proj );
5218
    $project = MakeSrcResolve ( $proj );
5218
    $proj = StripDir( $project );
5219
    $proj = StripDir( $project );
-
 
5220
    Error ("Build File Not found: $project") unless ( -f $project );
5219
 
5221
 
5220
    my $basedir = StripFileExt( $project );
5222
    my $basedir = StripFileExt( $project );
5221
 
5223
 
5222
    #
5224
    #
5223
    #   Collect user arguments
5225
    #   Collect user arguments
Line 7422... Line 7424...
7422
sub MakeResolve
7424
sub MakeResolve
7423
{
7425
{
7424
    my( $dirs, $source ) = @_;
7426
    my( $dirs, $source ) = @_;
7425
    my( $first, $dir, $count, $temp );
7427
    my( $first, $dir, $count, $temp );
7426
 
7428
 
-
 
7429
    #
-
 
7430
    #   If the path contains a '$' then its assumed to be
7427
#.. contain variables, abs path, leading . or /
7431
    #   a variable name in the path. Just assume that it exists
-
 
7432
    #
-
 
7433
    return $source if ( $source =~ m#\$# );
7428
#
7434
 
7429
    sub is_var_path {
7435
    #
7430
        local ( $_ ) = @_;
7436
    #   If the path is absolute or contains a leading ., then don't search
7431
        return m#\$#;
7437
    #   Warn if it can't be found
7432
    }
7438
    #
7433
    sub is_abs_path {
7439
    if ( $source =~ m#^(/|\.)# )
-
 
7440
    {
7434
        local ( $_ ) = @_;
7441
        Warning( "Unable to resolve '$source' path" ) unless -f $source;
7435
        return m#^(/|\.)#;
7442
        return $source;
7436
    }
7443
    }
7437
    return "$source"
-
 
7438
        if (is_var_path($source) || is_abs_path($source));
-
 
-
 
7444
 
7439
 
7445
 
7440
#.. search local path first
7446
#.. search local path first
7441
#
7447
#
7442
    $count = 0;
7448
    $count = 0;
7443
    $first = "";
7449
    $first = "";