source: patches/man-1.6f-new_compressors-1.patch @ 89bc6ed

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 89bc6ed was 89bc6ed, checked in by Jim Gifford <clfs@…>, 11 years ago

Added Patches to File, Man, Tar, and Texinfo to support XZ Utils - Patches

  • Property mode set to 100644
File size: 2.6 KB
  • configure

    Submitted By: Jim Gifford <jim at cross-lfs dot org>
    Date: 2009-02-21
    Initial Package Version: 1.6f
    Upstream Status: Unknown
    Origin: Jim Gifford
    Description: For using lzip compression
                 For using xz compression
    
    diff -Naur man-1.6f.orig/configure man-1.6f/configure
    old new  
    10151015  then
    10161016    DO_COMPRESSION=true
    10171017    compress=
    1018     for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
     1018    for i in xz lzip lzma bzip2 gzip bzip tzip pack compress freeze yabba
    10191019    do
    10201020      eval F$i=missing
    10211021      for j in $DEFPATH
     
    10681068    fi
    10691069
    10701070    case $compress in
     1071      *xz*) ext=".xz" ;;
     1072      *lzip*) ext=".lz" ;;
    10711073      *lzma*) ext=".lzma" ;;
    10721074      *bzip2*) ext=".bz2" ;;
    10731075      *gzip*) ext=".gz" ;;
     
    11111113fi
    11121114
    11131115# unconditionally handle uncompression
    1114 UNCOMPRESSORS="unlzma gunzip bzip2 pcat zcat fcat unyabba"
     1116UNCOMPRESSORS="unxz lzip unlzma gunzip bzip2 pcat zcat fcat unyabba"
    11151117for i in $UNCOMPRESSORS
    11161118do
    11171119  eval F$i=missing
     
    11321134if [ $Fbzip2 != missing ]; then
    11331135  bzip2="$Fbzip2 -c -d"
    11341136fi
     1137unxz=missing
     1138if [ $Funxz != missing ]; then
     1139  unxz="$Funxz -c -d"
     1140fi
    11351141unlzma=missing
    11361142if [ $Funlzma != missing ]; then
    11371143  unlzma="$Funlzma -c -d"
    11381144fi
     1145lzip=missing
     1146if [ $Flzip != missing ]; then
     1147  lzip="$Flzip -c -d"
     1148fi
    11391149pcat="$Fpcat"
    11401150zcat="$Fzcat"
    11411151fcat="$Ffcat"
     
    11641174        bzip2)
    11651175          echo "Command to use for .bz2 files (standard bzip2)"
    11661176          echo $n "[`eval echo \\$$filter`] $c" ;;
     1177        xz)
     1178          echo "Command to use for .xz files (standard xz)"
     1179          echo $n "[`eval echo \\$$filter`] $c" ;;
     1180        lzip)
     1181          echo "Command to use for .lz files (standard lzip)"
     1182          echo $n "[`eval echo \\$$filter`] $c" ;;
    11671183        lzma)
    11681184          echo "Command to use for .lzma files (standard lzma)"
    11691185          echo $n "[`eval echo \\$$filter`] $c" ;;
     
    12281244case $compress_ext in
    12291245  .gz) decompress=$gunzip ;;
    12301246  .bz2) decompress=$bzip2 ;;
     1247  .xz) decompress=$unxz ;;
     1248  .lz) decompress=$lzip ;;
    12311249  .lzma) decompress=$unlzma ;;
    12321250  .z) decompress=$pcat ;;
    12331251  .Z) decompress=$zcat ;;
     
    13211339s,@zcat@,$zcat,
    13221340s,@gunzip@,$gunzip,
    13231341s,@bzip2@,$bzip2,
     1342s,@lzip@,$lzip,
     1343s,@unxz@,$unxz,
    13241344s,@unlzma@,$unlzma,
    13251345s,@unyabba@,$unyabba,
    13261346s,@compress@,$compress,
  • src/man.conf.in

    diff -Naur man-1.6f.orig/src/man.conf.in man-1.6f/src/man.conf.in
    old new  
    132132#
    133133.gz             @gunzip@
    134134.bz2            @bzip2@
     135.xz             @unxz@
     136.lz             @lzip@
    135137.lzma           @unlzma@
    136138.z              @pcat@
    137139.Z              @zcat@
Note: See TracBrowser for help on using the repository browser.