3 http://bugs.gentoo.org/302380
5 --- a/src/makewhatis.sh
6 +++ b/src/makewhatis.sh
8 find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK '
11 - if (use_zcat || use_bzcat || use_lzcat) {
12 + if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
13 result = (pipe_cmd | getline);
15 print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr";
19 function closeline() {
20 - if (use_zcat || use_bzcat || use_lzcat) {
21 + if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
22 return close(pipe_cmd);
24 return close(filename);
26 use_bzcat = match(filename,"\\.bz2");
28 use_lzcat = match(filename,"\\.lzma");
29 - if (use_zcat || use_bzcat || use_lzcat ) {
31 + use_xzcat = match(filename,"\\.xz");
32 + if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
33 filename_no_gz = substr(filename, 0, RSTART - 1);
35 filename_no_gz = filename;
37 actual_section = section;
39 sub(/\..*/, "", progname);
40 - if (use_zcat || use_bzcat || use_lzcat) {
41 + if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
43 pipe_cmd = "zcat \"" filename "\"";
44 } else if (use_bzcat) {
45 pipe_cmd = "bzcat \"" filename "\"";
47 + } else if (use_lzcat) {
48 pipe_cmd = "lzcat \"" filename "\"";
50 + pipe_cmd = "xzcat \"" filename "\"";
52 # try to avoid suspicious stuff
53 if (filename ~ /[;&|`$(]/) {