Changeset 1469 in ProjectBuilder for devel/pb/bin/pb
- Timestamp:
- Apr 16, 2012, 3:43:53 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1465 r1469 32 32 use ProjectBuilder::Conf; 33 33 use ProjectBuilder::Distribution; 34 use ProjectBuilder::VCS; 34 35 use ProjectBuilder::CMS; 35 36 use ProjectBuilder::Env; … … 850 851 } 851 852 } 852 my $preserve = pb_ cms_export($sourceuri,$sourcedir,$dest);853 my $preserve = pb_vcs_export($sourceuri,$sourcedir,$dest); 853 854 854 855 # Generated fake content for test versions to speed up stuff … … 998 999 foreach my $pf (split(/,/,$pb->{'patches'}->{$v})) { 999 1000 my $pp = basename($pf); 1000 pb_ cms_export($pf,undef,"$dest/pbconf/$v/pbpatch");1001 pb_vcs_export($pf,undef,"$dest/pbconf/$v/pbpatch"); 1001 1002 pb_filter_file_inplace($ptr,"$dest/pbconf/$v/pbpatch/$pp",$pb); 1002 1003 pb_system("gzip -9f $dest/pbconf/$v/pbpatch/$pp","","quiet"); … … 1017 1018 foreach my $pf (split(/,/,$pb->{'sources'}->{$v})) { 1018 1019 my $pp = basename($pf); 1019 pb_ cms_export($pf,undef,"$dest/pbconf/$v/pbsrc");1020 pb_vcs_export($pf,undef,"$dest/pbconf/$v/pbsrc"); 1020 1021 pb_filter_file_inplace($ptr,"$dest/pbconf/$v/pbsrc/$pp",$pb); 1021 1022 } … … 2604 2605 } 2605 2606 2606 my $res = pb_ cms_isdiff($scheme,$ENV{'PBROOTDIR'});2607 my $res = pb_vcs_isdiff($scheme,$ENV{'PBROOTDIR'}); 2607 2608 die "ERROR: No differences accepted in CMS for $ENV{'PBROOTDIR'} before creating a new version" if ($res != 0); 2608 2609 2609 $res = pb_ cms_isdiff($scheme2,$ENV{'PBDIR'});2610 $res = pb_vcs_isdiff($scheme2,$ENV{'PBDIR'}); 2610 2611 die "ERROR: No differences accepted in CMS for $ENV{'PBDIR'} before creating a new version" if ($res != 0); 2611 2612 … … 2625 2626 # Duplicate and extract project-builder part 2626 2627 pb_log(2,"Copying $uri/$oldver to $newurl\n"); 2627 pb_ cms_copy($scheme,"$uri/$oldver",$newurl);2628 pb_vcs_copy($scheme,"$uri/$oldver",$newurl); 2628 2629 pb_log(2,"Checkout $newurl to $ENV{'PBCONFDIR'}/$newver\n"); 2629 pb_ cms_up($scheme,"$ENV{'PBCONFDIR'}");2630 pb_vcs_up($scheme,"$ENV{'PBCONFDIR'}"); 2630 2631 2631 2632 # Duplicate and extract project … … 2633 2634 2634 2635 pb_log(2,"Copying $pburl->{$ENV{'PBPROJ'}}/$oldver to $newurl2\n"); 2635 pb_ cms_copy($scheme2,"$pburl->{$ENV{'PBPROJ'}}/$oldver",$newurl2);2636 pb_vcs_copy($scheme2,"$pburl->{$ENV{'PBPROJ'}}/$oldver",$newurl2); 2636 2637 2637 2638 my $tmp = $ENV{'PBDIR'}; 2638 2639 $tmp =~ s|$oldver$||; 2639 2640 pb_log(2,"Checkout $newurl2 to $tmp/$newver\n"); 2640 pb_ cms_up($scheme2,"$tmp");2641 pb_vcs_up($scheme2,"$tmp"); 2641 2642 2642 2643 # Update the .pb file
Note:
See TracChangeset
for help on using the changeset viewer.