Changeset 1554 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/VCS.pm


Ignore:
Timestamp:
May 21, 2012, 3:19:04 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • pb: Update documentation, the newproj docs were missing an important argument. Expanded out the newproj documentation. Fixed the cms2build documentation to match the same style as the other documentation. (Eric Anderson)
  • CMS.pm/VCS.pm: Tolerate the file: scheme -- it was tolerated in some places but not others. (Eric Anderson)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/VCS.pm

    r1540 r1554  
    328328    $newurl = pb_vcs_mod_htftp($newurl,"svn");
    329329    pb_system("$vcscmd copy -m \"Creation of $newurl from $oldurl\" $oldurl $newurl","Copying $oldurl to $newurl ");
    330 } elsif (($scheme eq "flat") || ($scheme eq "ftp") || ($scheme eq "http"))   {
     330} elsif ($scheme =~ /^(flat)|(ftp)|(http)|(file)\b/o) {
     331    # Nothing to do.
    331332} else {
    332333    die "cms $scheme unknown for project management";
     
    406407        pb_system("(cd $d && $vcscmd pull)", "Updating $d ");
    407408    }
    408 } elsif (($scheme eq "flat") || ($scheme eq "ftp") || ($scheme eq "http"))   {
     409} elsif ($scheme =~ /^(flat)|(ftp)|(http)|(file)\b/o) {
     410    # Nothing to do.
    409411} else {
    410412    die "cms $scheme unknown";
     
    431433} elsif ($scheme =~ /^git/) {
    432434    pb_system("cd $dir && $vcscmd commit -a -m \"$msg\"", "Checking in $dir ");
    433 } elsif (($scheme eq "flat") || ($scheme eq "ftp") || ($scheme eq "http"))   {
     435} elsif ($scheme =~ /^(flat)|(ftp)|(http)|(file)\b/o) {
     436    # Nothing to do.
    434437} else {
    435438    die "cms $scheme unknown";
     
    453456if ($scheme =~ /^((hg)|(git)|(svn)|(svk)|(cvs))/o) {
    454457    pb_system("$vcscmd add ".join(' ',@f),"Adding ".join(' ',@f)." to VCS ");
    455 } elsif (($scheme eq "flat") || ($scheme eq "ftp") || ($scheme eq "http"))   {
     458} elsif ($scheme =~ /^(flat)|(ftp)|(http)|(file)\b/o) {
     459    # Nothing to do.
    456460} else {
    457461    die "cms $scheme unknown";
     
    482486        $l++;
    483487    }
    484 } elsif (($scheme eq "flat") || ($scheme eq "ftp") || ($scheme eq "http"))  {
     488} elsif ($scheme =~ /^(flat)|(ftp)|(http)|(file)\b/o) {
    485489    $l = 0;
    486490} else {
Note: See TracChangeset for help on using the changeset viewer.