Ticket #229: brp-compress.diff

File brp-compress.diff, 1.2 KB (added by dmik, 8 years ago)
  • C:\usr\lib\rpm\brp-compress

    old new  
    55        exit 0
    66fi
    77
    8 cd $RPM_BUILD_ROOT
     8cd "$RPM_BUILD_ROOT"
    99
    1010# Compress man pages
    11 COMPRESS="gzip -9 -n"
    12 COMPRESS_EXT=.gz
     11COMPRESS=${COMPRESS:-gzip -9 -n}
     12COMPRESS_EXT=${COMPRESS_EXT:-.gz}
    1313
    1414for d in ./usr/man/man* ./usr/man/*/man* ./usr/info \
    1515        ./usr/share/man/man* ./usr/share/man/*/man* ./usr/share/info \
     
    1717        ./usr/share/doc/*/man/man* ./usr/lib/*/man/man*
    1818do
    1919    [ -d $d ] || continue
    20     for f in `find $d -type f`
     20    for f in `find $d -type f ! -name dir`
    2121    do
    2222        [ -f "$f" ] || continue
    23         [ "`basename $f`" = "dir" ] && continue
    2423
    2524        case "$f" in
    26          *.gz|*.Z)    gunzip  $f; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;;
    27          *.bz2)       bunzip2 $f; b=`echo $f | sed -e 's/\.bz2$//'`;;
    28          *.xz|*.lzma) unxz    $f; b=`echo $f | sed -e 's/\.\(xz\|lzma\)$//'`;;
     25         *.gz|*.Z)    gunzip  -f $f; b=`echo $f | sed -e 's/\.\(gz\|Z\)$//'`;;
     26         *.bz2)       bunzip2 -f $f; b=`echo $f | sed -e 's/\.bz2$//'`;;
     27         *.xz|*.lzma) unxz    -f $f; b=`echo $f | sed -e 's/\.\(xz\|lzma\)$//'`;;
    2928         *) b=$f;;
    3029        esac
    3130