Changeset 590 in ProjectBuilder
- Timestamp:
- Oct 14, 2008, 11:28:50 AM (16 years ago)
- Location:
- devel/pb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r586 r590 1615 1615 # Checking pbcl files 1616 1616 foreach my $f (<$ENV{'PBROOTDIR'}/*/pbcl>) { 1617 # Compute new pbcl file 1618 my $f2 = $f; 1619 $f2 =~ s|$ENV{'PBROOTDIR'}|$ENV{'PBROOTDIR'}/../$newver/|; 1617 1620 open(PBCL,$f) || die "Unable to open $f"; 1618 1621 my $foundnew = 0; … … 1621 1624 } 1622 1625 close(PBCL); 1623 open(OUT,"> $f .new") || die "Unable to write to $f.new: $!";1626 open(OUT,"> $f2") || die "Unable to write to $f2: $!"; 1624 1627 open(PBCL,$f) || die "Unable to open $f"; 1625 1628 while (<PBCL>) { … … 1629 1632 print OUT "- TBD\n"; 1630 1633 print OUT "\n"; 1631 pb_log(0,"WARNING: version $newver not found in $f so added ...") if ($foundnew == 0);1634 pb_log(0,"WARNING: version $newver not found in $f so added to $f2...\n") if ($foundnew == 0); 1632 1635 } 1633 1636 } 1634 1637 close(OUT); 1635 1638 close(PBCL); 1636 rename("$f.new","$f");1637 1639 } 1638 1640 -
devel/pb/lib/ProjectBuilder/CMS.pm
r544 r590 135 135 $tmp = "$destdir/".basename($source); 136 136 } 137 pb_system("svn export $source $tmp","Exporting $source from SVN to $tmp ");138 } else { 139 pb_system("svn export $uri $destdir","Exporting $uri from SVN to $destdir ");137 pb_system("svn export $source $tmp","Exporting $source from SVN to $tmp "); 138 } else { 139 pb_system("svn export $uri $destdir","Exporting $uri from SVN to $destdir "); 140 140 } 141 141 } elsif ($scheme eq "dir") { 142 pb_system("cp -a $path $destdir","Copying $uri from DIR to $destdir ");142 pb_system("cp -a $path $destdir","Copying $uri from DIR to $destdir "); 143 143 } elsif (($scheme eq "http") || ($scheme eq "ftp")) { 144 144 my $f = basename($path); … … 175 175 if ($mm =~ /\/x-bzip-compressed-tar$/) { 176 176 # tar+bzip2 177 pb_system("cd $destdir ; tar xfj $path","Extracting $path in $destdir ");177 pb_system("cd $destdir ; tar xfj $path","Extracting $path in $destdir "); 178 178 } elsif ($mm =~ /\/x-lzma-compressed-tar$/) { 179 179 # tar+lzma 180 pb_system("cd $destdir ; tar xfY $path","Extracting $path in $destdir ");180 pb_system("cd $destdir ; tar xfY $path","Extracting $path in $destdir "); 181 181 } elsif ($mm =~ /\/x-compressed-tar$/) { 182 182 # tar+gzip 183 pb_system("cd $destdir ; tar xfz $path","Extracting $path in $destdir ");183 pb_system("cd $destdir ; tar xfz $path","Extracting $path in $destdir "); 184 184 } elsif ($mm =~ /\/x-tar$/) { 185 185 # tar 186 pb_system("cd $destdir ; tar xf $path","Extracting $path in $destdir ");186 pb_system("cd $destdir ; tar xf $path","Extracting $path in $destdir "); 187 187 } elsif ($mm =~ /\/zip$/) { 188 188 # zip 189 pb_system("cd $destdir ; unzip $path","Extracting $path in $destdir ");189 pb_system("cd $destdir ; unzip $path","Extracting $path in $destdir "); 190 190 } else { 191 191 # simple file: copy it (patch e.g.) … … 213 213 $cvsopt = "-r $cvstag"; 214 214 } 215 pb_system("cd $dir ; cvs -d $account\@$host:$path export $cvsopt -d $base $tmp1","Exporting $tmp1 from $source under CVS to $destdir ");215 pb_system("cd $dir ; cvs -d $account\@$host:$path export $cvsopt -d $base $tmp1","Exporting $tmp1 from $source under CVS to $destdir "); 216 216 } else { 217 217 die "cms $scheme unknown"; … … 333 333 } 334 334 pb_mkdir_p("$destination"); 335 pb_system("cd $destination ; cvs -d $account\@$host:$path co $cvsopt .","Checking out $url to $destination ");335 pb_system("cd $destination ; cvs -d $account\@$host:$path co $cvsopt .","Checking out $url to $destination "); 336 336 } elsif ($scheme =~ /^file/) { 337 337 pb_cms_export($url,undef,$destination); … … 354 354 355 355 if ($scheme =~ /^svn/) { 356 pb_system("svn up $dir","Updating $dir ");356 pb_system("svn up $dir","Updating $dir "); 357 357 } elsif ($scheme eq "flat") { 358 358 } elsif ($scheme =~ /^cvs/) { 359 pb_system("cvs up $dir","Updating $dir ");359 pb_system("cvs up $dir","Updating $dir "); 360 360 } else { 361 361 die "cms $scheme unknown"; … … 382 382 383 383 if ($scheme =~ /^svn/) { 384 pb_system("svn ci -m \"$msg\" $dir","Checking in $dir ");384 pb_system("svn ci -m \"$msg\" $dir","Checking in $dir "); 385 385 } elsif ($scheme eq "flat") { 386 386 } elsif ($scheme =~ /^cvs/) { 387 pb_system("cvs ci -m \"$msg\" $dir","Checking in $dir ");387 pb_system("cvs ci -m \"$msg\" $dir","Checking in $dir "); 388 388 } else { 389 389 die "cms $scheme unknown"; … … 405 405 406 406 if ($scheme =~ /^svn/) { 407 pb_system("svn add $f","Adding $f to SVN ");407 pb_system("svn add $f","Adding $f to SVN "); 408 408 } elsif ($scheme eq "flat") { 409 409 } elsif ($scheme =~ /^cvs/) { 410 pb_system("cvs add $f","Adding $f to CVS ");410 pb_system("cvs add $f","Adding $f to CVS "); 411 411 } else { 412 412 die "cms $scheme unknown";
Note:
See TracChangeset
for help on using the changeset viewer.