source:
patches/texinfo-4.13a-new_compressors-1.patch@
72d6a1b
Last change on this file since 72d6a1b was 89bc6ed, checked in by , 16 years ago | |
---|---|
|
|
File size: 2.9 KB |
-
doc/texinfo.txi
Submitted By: Jim Gifford <jim at cross-lfs dot org> Date: 2009-02-21 Initial Package Version: 4.13a Upstream Status: Unknown Origin: Jim Gifford Description: For using xz compression diff -Naur texinfo-4.13.orig/doc/texinfo.txi texinfo-4.13/doc/texinfo.txi
old new 16488 16488 16489 16489 @cindex Compressed dir files, reading 16490 16490 @cindex Bzipped dir files, reading 16491 @cindex XZ-compressed dir files, reading 16491 16492 @cindex LZMA-compressed dir files, reading 16492 16493 @cindex Dir files, compressed 16493 16494 If any input file is compressed with @code{gzip} (@pxref{Top,,,gzip, … … 16495 16496 for reading. And if @var{dir-file} is compressed, @code{install-info} 16496 16497 also automatically leaves it compressed after writing any changes. 16497 16498 If @var{dir-file} itself does not exist, @code{install-info} tries to 16498 open @file{@var{dir-file}.gz}, @file{@var{dir-file}.bz2}, and16499 @file{@var{dir-file}. lzma}, in that order.16499 open @file{@var{dir-file}.gz}, @file{@var{dir-file}.bz2}, 16500 @file{@var{dir-file}.xz} and @file{@var{dir-file}.lzma}, in that order. 16500 16501 16501 16502 Options: 16502 16503 -
info/filesys.c
diff -Naur texinfo-4.13.orig/info/filesys.c texinfo-4.13/info/filesys.c
old new 55 55 static COMPRESSION_ALIST compress_suffixes[] = { 56 56 { ".gz", "gunzip" }, 57 57 { ".bz2", "bunzip2" }, 58 { ".xz", "unxz" }, 58 59 { ".lzma", "unlzma" }, 59 60 { ".z", "gunzip" }, 60 61 { ".Z", "uncompress" }, -
install-info/install-info.c
diff -Naur texinfo-4.13.orig/install-info/install-info.c texinfo-4.13/install-info/install-info.c
old new 739 739 #else 740 740 *compression_program = "bzip"; 741 741 #endif 742 else if (data[0] == '\xFD' && data[1] == '7' && data[2] == 'z' 743 && data[3] == 'X' && data[4] == 'Z' && data[5] == 0x00) 744 #ifndef STRIP_DOT_EXE 745 *compression_program = "xz.exe"; 746 #else 747 *compression_program = "xz"; 748 #endif 742 749 /* We (try to) match against old lzma format (which lacks proper 743 header, two first matches) , as well as the new format (last match).*/750 header, two first matches). */ 744 751 else if ((data[9] == 0x00 && data[10] == 0x00 && data[11] == 0x00 745 752 && data[12] == 0x00) 746 753 || (data[5] == '\xFF' && data[6] == '\xFF' && data[7] == '\xFF' 747 754 && data[8] == '\xFF' && data[9] == '\xFF' && data[10] == '\xFF' 748 && data[11] == '\xFF' && data[12] == '\xFF') 749 || (data[0] == '\xFF' && data[1] == 'L' && data[2] == 'Z' 750 && data[3] == 'M' && data[4] == 'A' && data[5] == 0x00)) 755 && data[11] == '\xFF' && data[12] == '\xFF')) 751 756 #ifndef STRIP_DOT_EXE 752 757 *compression_program = "lzma.exe"; 753 758 #else
Note:
See TracBrowser
for help on using the repository browser.