Changeset 1612 in ProjectBuilder for devel/pb/bin
- Timestamp:
- May 28, 2012, 11:33:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1606 r1612 2958 2958 open(OUT,"> $f2") || die "Unable to write to $f2: $!"; 2959 2959 open(PBCL,$f) || die "Unable to open $f"; 2960 # We skip as long as we do not reach the new version in the log (case of devel) 2961 my $skip = 1; 2962 # We let the 4 first lines 2963 my $cnt = 0; 2960 2964 while (<PBCL>) { 2961 print OUT "$_" if (not /^$oldvertxt \(/);2965 $skip = 0 if (/^$newvertxt \(/); 2962 2966 if ((/^$oldvertxt \(/) && ($foundnew == 0)) { 2963 2967 print OUT "$newvertxt ($pbdate)\n"; … … 2966 2970 pb_log(0,"WARNING: version $newvertxt not found in $f so added to $f2...\n") if ($foundnew == 0); 2967 2971 } 2972 if ($cnt <= 4) { 2973 print OUT "$_" if (not /^$oldvertxt \(/); 2974 } else { 2975 print OUT "$_" if ($skip == 0); 2976 } 2977 $cnt++; 2968 2978 } 2969 2979 close(OUT);
Note:
See TracChangeset
for help on using the changeset viewer.