Changeset 220 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Oct 15, 2007, 2:13:20 PM (17 years ago)
Author:
Bruno Cornec
Message:
  • date done with sudo in the VM before running pb to avoid time issues
  • Really no macro in spec file for other rpm distro than Mandriva
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r211 r220  
    124124    pb_build2pkg();
    125125} elsif ($action =~ /^build2ssh$/) {
     126    pb_build2ssh();
     127} elsif ($action =~ /^cms2ssh$/) {
     128    pb_cms2build();
    126129    pb_build2ssh();
    127130} elsif ($action =~ /^pkg2ssh$/) {
     
    658661    # Prepare the script to be executed on the VM
    659662    # in $ENV{'PBDESTDIR'}/pbscript
     663    my ($ntp) = pb_conf_get("vmntp");
     664    my $vmntp = $ntp->{$ENV{'PBPROJ'}};
    660665    open(SCRIPT,"> $ENV{'PBDESTDIR'}/pbscript") || die "Unable to create $ENV{'PBDESTDIR'}/pbscript";
    661666    print SCRIPT "#!/bin/bash\n";
     
    669674    print SCRIPT "mv .pbrc \$HOME\n";
    670675    print SCRIPT "cd ..\n";
     676    my $upddate = strftime("%m%d%H%M%Y", @date);
     677    print SCRIPT "echo Setting up date on $vmntp...\n";
     678    print SCRIPT "sudo date $upddate\n";
    671679    print SCRIPT "export PBROOT=\`pwd\`\n";
    672680    print SCRIPT "# Build\n";
     
    850858    print "\tbuild2ssh: Send the tar files to a SSH host               \n";
    851859    print "\n";
     860    print "\tcms2ssh:   cms2build + build2ssh\n";
     861    print "\n";
    852862    print "\tpkg2ssh:   Send the packages built to a SSH host          \n";
    853863    print "\n";
Note: See TracChangeset for help on using the changeset viewer.