Changeset 28


Ignore:
Timestamp:
12/12/05 18:10:42 (18 years ago)
Author:
kdeugau
Message:

/trunk

Checkpoint
Tweaks to %files handling, cruft cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r27 r28  
    142142}
    143143# -> install if -.[ilabs]
    144 if ($cmdopts{stage} eq 'i' || ($cmdopts{stage} =~ /[labs]/ && $cmdopts{short} ne 'y')) {
    145 #if ($cmdopts{stage} =~ /[ilabs]/) {
     144#if ($cmdopts{stage} eq 'i' || ($cmdopts{stage} =~ /[labs]/ && $cmdopts{short} ne 'y')) {
     145if ($cmdopts{stage} =~ /[ilabs]/) {
    146146  install();
    147147}
     
    259259  if ($cmdopts{short} eq 'y' && $cmdopts{stage} =~ /[labs]/) {
    260260    warn "Can't use --short-circuit for $targets{$cmdopts{stage}} stage.  Ignoring.\n";
    261 ##temp  Allow short-circuit on full builds so we can experiment
    262 # with apache pkg without spending hours recompiling repeatedly
    263 #    $cmdopts{short} = 'n';
     261    $cmdopts{short} = 'n';
    264262  }
    265263
     
    617615  }
    618616
    619 print "\n\nmoving files for subpackages...\n";
    620617##work
    621618  foreach my $pkg (@pkglist) {
    622 #next if $pkg eq 'sources';
    623 print "got here, trying to move files for $pkg...\n";
    624619
    625620    # Gotta do this first, otherwise we don't have a place to move files from %files
    626621    mkdir "$buildroot/$pkg";
     622
    627623    my @pkgfilelist = split ' ', $filelist{$pkg};
    628624    foreach my $pkgfile (@pkgfilelist) {
    629 #print "finding path for $pkgfile\n";
    630625      my @filepath = ($pkgfile =~ /(.+)\/([a-zA-Z0-9_\.\+\-]+)$/);
    631626      qx { mkdir -p $buildroot/$pkg$filepath[0] }
    632627        if $filepath[0] ne '';
    633 #print "mkdir -p $buildroot/$pkg$filepath[0]\n";
    634 #print "$filepath[0]\n";
    635628      qx { mv $buildroot$pkgfile $buildroot/$pkg$filepath[0] };
    636 #print "mv $buildroot$pkgfile $buildroot/$pkg$filepath[0]\n";
    637     }
    638 #exit 0;
     629    }
     630
    639631    # Gotta do this next, otherwise the control file has nowhere to go.  >:(
    640632    mkdir "$buildroot/$pkg/DEBIAN";
     
    650642    close DEBSCRIPT;
    651643
    652 #my $control;
    653 #eval {
    654644    my $control = "Package: $pkgdata{$pkg}{name}\n".
    655645        "Version: $pkgdata{$pkg}{version}-$pkgdata{main}{release}\n".
     
    660650        "Description: $pkgdata{$pkg}{summary}\n";
    661651    $control .= "$pkgdata{$pkg}{desc}\n";
    662 #};
    663 #die "control: $control\n\n $@ \n" if $@;
    664652
    665653    open CONTROL, ">$buildroot/$pkg/DEBIAN/control";
Note: See TracChangeset for help on using the changeset viewer.