- Timestamp:
- Oct 14, 2007, 8:46:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r209 r211 707 707 pb_cms_checkout($cms,$newurl,"$ENV{'PBROOT'}/../$newver"); 708 708 my $oldver=basename($cmsurl); 709 open(FILE,"+<$ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb") || die "Unable to open $ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb"; 709 open(FILE,"$ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb") || die "Unable to open $ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb"; 710 open(OUT,"> $ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb.new") || die "Unable to write to $ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb.new"; 710 711 while(<FILE>) { 711 712 s/projver\s+$ENV{'PBPROJ'}\s*=\s*$oldver/projver $ENV{'PBPROJ'} = $newver/; 713 print OUT $_; 712 714 } 713 715 close(FILE); 716 close(OUT); 717 rename("$ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb.new","$ENV{'PBROOT'}/../$newver/pbconf/$ENV{'PBPROJ'}.pb"); 714 718 pb_cms_checkin($cms,"$ENV{'PBROOT'}/../$newver"); 715 719 }
Note:
See TracChangeset
for help on using the changeset viewer.