Ticket #229: brp-compress.diff
File brp-compress.diff, 1.2 KB (added by , 8 years ago) |
---|
-
C:\usr\lib\rpm\brp-compress
old new 5 5 exit 0 6 6 fi 7 7 8 cd $RPM_BUILD_ROOT8 cd "$RPM_BUILD_ROOT" 9 9 10 10 # Compress man pages 11 COMPRESS= "gzip -9 -n"12 COMPRESS_EXT= .gz11 COMPRESS=${COMPRESS:-gzip -9 -n} 12 COMPRESS_EXT=${COMPRESS_EXT:-.gz} 13 13 14 14 for d in ./usr/man/man* ./usr/man/*/man* ./usr/info \ 15 15 ./usr/share/man/man* ./usr/share/man/*/man* ./usr/share/info \ … … 17 17 ./usr/share/doc/*/man/man* ./usr/lib/*/man/man* 18 18 do 19 19 [ -d $d ] || continue 20 for f in `find $d -type f `20 for f in `find $d -type f ! -name dir` 21 21 do 22 22 [ -f "$f" ] || continue 23 [ "`basename $f`" = "dir" ] && continue24 23 25 24 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\)$//'`;; 29 28 *) b=$f;; 30 29 esac 31 30