1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# This patch has been put into the public domain
# by Per Øyvind Karlsen <pkarlsen@mandriva.com>.
--- texinfo-4.8/util/install-info.c.lzma 2007-06-07 21:04:02.000000000 +0200
+++ texinfo-4.8/util/install-info.c 2007-06-07 21:12:20.000000000 +0200
@@ -338,6 +338,11 @@ strip_info_suffix (char *fname)
len -= 4;
ret[len] = 0;
}
+ else if (len > 5 && FILENAME_CMP (ret + len - 5, ".lzma") == 0)
+ {
+ len -= 5;
+ ret[len] =0;
+ }
if (len > 5 && FILENAME_CMP (ret + len - 5, ".info") == 0)
{
@@ -556,6 +561,12 @@ open_possibly_compressed_file (char *fil
*opened_filename = concat (filename, ".bz2", "");
f = fopen (*opened_filename, FOPEN_RBIN);
}
+ if (!f)
+ {
+ free (*opened_filename);
+ *opened_filename = concat (filename, ".lzma", "");
+ f = fopen (*opened_filename, FOPEN_RBIN);
+ }
#ifdef __MSDOS__
if (!f)
@@ -624,6 +635,12 @@ open_possibly_compressed_file (char *fil
#else
*compression_program = "bzip";
#endif
+ else if(data[9] == '0x00' && data[10] == '0x00' && data[11] == '0x00' & data[12] == '0x00')
+#ifndef STRIP_DOT_EXE
+ *compression_program = "lzma.exe";
+#else
+ *compression_program = "lzma";
+#endif
else
*compression_program = NULL;
--- texinfo-4.8/info/filesys.c.lzma 2004-07-30 19:17:40.000000000 +0200
+++ texinfo-4.8/info/filesys.c 2007-06-07 21:21:49.000000000 +0200
@@ -56,6 +56,7 @@ static char *info_suffixes[] = {
static COMPRESSION_ALIST compress_suffixes[] = {
{ ".gz", "gunzip" },
{ ".bz2", "bunzip2" },
+ { ".lzma", "unlzma" },
{ ".z", "gunzip" },
{ ".Z", "uncompress" },
{ ".Y", "unyabba" },
|