Changeset 117 for trunk


Ignore:
Timestamp:
07/19/07 16:33:34 (17 years ago)
Author:
kdeugau
Message:

/trunk

Gzip manpages as needed, and modify the files list(s) to match so we
don't try moving/copying files that don't exist (any more).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r116 r117  
    992992    foreach my $pkgfile (@pkgfilelist) {
    993993      $pkgfile = expandmacros($pkgfile, 'gp');
     994
     995      # Feh.  Manpages don't **NEED** to be gzipped, but rpmbuild does, and so shall we.
     996      if ($pkgfile =~ m|/usr/share/man/man|) {
     997        # need to check to see if manpage is gzipped
     998        if (-e "$buildroot$pkgfile") {
     999          if ($pkgfile !~ m|\.gz$|) {
     1000            qx { gzip $buildroot$pkgfile };
     1001            $pkgfile .= ".gz";
     1002          }
     1003        } else {
     1004          if ($pkgfile !~ m|\.gz$|) {
     1005            $pkgfile .= ".gz";
     1006          } else {
     1007            $pkgfile =~ s/\.gz$//;
     1008            qx { gzip $buildroot$pkgfile };
     1009            $pkgfile .= ".gz";
     1010          }
     1011        }
     1012      }
     1013
    9941014      my ($fpath,$fname) = ($pkgfile =~ m|(.+?/?)?([^/]+)$|);   # We don't need $fname now, but we might.
    9951015      qx { mkdir -p $buildroot/$pkg$fpath }
Note: See TracChangeset for help on using the changeset viewer.