- Timestamp:
- Sep 7, 2019, 2:23:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r2443 r2450 3652 3652 if (/^projver\s+$ENV{'PBPROJ'}\s*=\s*$oldvertxt$/) { 3653 3653 s/^projver\s+$ENV{'PBPROJ'}\s*=\s*$oldvertxt$/projver $ENV{'PBPROJ'} = $newvertxt/; 3654 pb_log(0,"Changing projver from $oldvertxt to $newvertxt in $ENV{'PBCONFDIR'}/$newver/$ENV{'PBPROJ'}.pb\n"); 3655 } 3656 if (/^projver:\n\s+$ENV{'PBPROJ'}:\s*$oldvertxt$/) { 3657 s/^projver:\n\s+$ENV{'PBPROJ'}:\s*$oldvertxt$/projver:\n $ENV{'PBPROJ'}: $newvertxt/; 3654 3658 pb_log(0,"Changing projver from $oldvertxt to $newvertxt in $ENV{'PBCONFDIR'}/$newver/$ENV{'PBPROJ'}.yml\n"); 3655 3659 } 3656 3660 if (/^testver/) { 3657 s/^testver/#testver/; 3658 pb_log(0,"Commenting testver in $ENV{'PBCONFDIR'}/$newver/$ENV{'PBPROJ'}.yml\n") if (/^testver/); 3661 s/^testver:\n\s+$ENV{'PBPROJ'}:(.*)$/#testver:\n#\s+$ENV{'PBPROJ'}: $1/; 3662 pb_log(0,"Commenting testver in $ENV{'PBCONFDIR'}/$newver/$ENV{'PBPROJ'}.yml\n"); 3663 my $txt = $_; 3664 chomp($txt); 3659 3665 } 3660 3666 if (/^delivery/) { … … 3694 3700 pb_log(0,"WARNING: version $newvertxt not found in $f so added to $f2...\n") if ($foundnew == 0); 3695 3701 } 3696 if ($cnt <= 4) {3702 if ($cnt <= 3) { 3697 3703 print OUT "$_" if (not /^$oldvertxt \(/); 3698 3704 } else {
Note:
See TracChangeset
for help on using the changeset viewer.