- Timestamp:
- Nov 26, 2010, 12:54:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1112 r1117 292 292 Announce the availability of the project through various means 293 293 294 =item B<web2ssh> 295 296 Deliver the Web site content to the target server using ssh. 294 =item B<sbx2webssh> 295 296 Create tar files for the website under your CMS. 297 Current state of the exported content is taken. 298 Deliver the content to the target server using ssh from the exported dir. 299 300 =item B<cms2webssh> 301 302 Create tar files for the website from your CMS. 303 Deliver the content to the target server using ssh from the DVCS. 304 305 =item B<sbx2webpkg> 306 307 Create tar files for the website under your CMS. 308 Current state of the exported content is taken. 309 310 =item B<cms2webpkg> 311 312 Create tar files for the website under your CMS. 297 313 298 314 =item B<clean> … … 563 579 564 580 pb_announce(); 565 } elsif ($action =~ /^ web2ssh$/) {581 } elsif ($action =~ /^sbx2webpkg$/) { 566 582 require DBI; 567 583 require DBD::SQLite; 568 584 569 pb_cms2build("Web"); 585 pb_cms2build("SandBox","Web"); 586 } elsif ($action =~ /^sbx2webssh$/) { 587 require DBI; 588 require DBD::SQLite; 589 590 pb_cms2build("SandBox","Web"); 591 pb_send2target("Web"); 592 } elsif ($action =~ /^cms2webpkg$/) { 593 require DBI; 594 require DBD::SQLite; 595 596 pb_cms2build("CMS","Web"); 597 } elsif ($action =~ /^cms2webssh$/) { 598 require DBI; 599 require DBD::SQLite; 600 601 pb_cms2build("CMS","Web"); 570 602 pb_send2target("Web"); 571 603 } else { … … 577 609 578 610 my $param = shift || undef; 611 my $web = shift || undef; 579 612 580 613 my $pkg; … … 585 618 my %pb; # Structure to store conf info 586 619 587 die "pb_cms2build requires a parameter: Web,SandBox or CMS" if (not defined $param);620 die "pb_cms2build requires a parameter: SandBox or CMS" if (not defined $param); 588 621 589 622 # If Website, then pkg is only the website 590 if ( $param eq "Web") {623 if (defined $web) { 591 624 ($webdir) = pb_conf_get("webdir"); 592 625 pb_log(2,"webdir: ".Dumper($webdir)."\n"); … … 645 678 my $dir = $defpkgdir->{$pbpkg}; 646 679 $dir = $extpkgdir->{$pbpkg} if (not defined $dir); 647 $dir = $webdir->{$ENV{'PBPROJ'}} if ($param eq "Web"); 680 $dir = $webdir->{$ENV{'PBPROJ'}} if (defined $web); 681 die "Variable \$dir not defined. Please report to dev team with log of a verbose run and this info ".Dumper($webdir) if (not defined $dir); 648 682 pb_log(2,"def:".Dumper($defpkgdir)." ext: ".Dumper($extpkgdir)." \n"); 649 683 … … 703 737 $pb{'ver'} = $pbver; 704 738 $pb{'pkg'} = $pbpkg; 739 $pb{'realpkg'} = $pbpkg; 705 740 $pb{'date'} = $pbdate; 706 741 $pb{'defpkgdir'} = $defpkgdir; … … 714 749 715 750 # Do not do that for website 716 if ( $param ne "Web") {751 if (not defined $web) { 717 752 pb_log(0,"Build files are being generated for ...\n"); 718 753 my %virt; … … 837 872 838 873 # Do not do that for website 839 if ( $param ne "Web") {874 if (not defined $web) { 840 875 my %tmp; 841 876 my $warnflag = 0;
Note:
See TracChangeset
for help on using the changeset viewer.