add support for bzip2/lzma to man2html and friends --- man2html/glimpse_filters +++ man2html/glimpse_filters @@ -1,3 +1,5 @@ +*.bz2 bzip2 -d -c +*.lzma lzma -d -c *.gz gzip -d -c *.Z gzip -d -c --- man2html/scripts/cgi-bin/man/man2html +++ man2html/scripts/cgi-bin/man/man2html @@ -93,6 +93,9 @@ *.bz2) bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" ;; + *.lzma) + lzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE" + ;; *) "$MAN2HTML" "$LL" "$PAGE" ;; @@ -103,6 +106,9 @@ elif [ -r "$PAGE".bz2 ] then bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE" +elif [ -r "$PAGE".lzma ] +then + lzcat "$PAGE".lzma | "$MAN2HTML" "$LL" -D "$PAGE" else "$MAN2HTML" -E "Strange... Cannot find (or read) $PAGE." fi --- man2html/scripts/cgi-bin/man/mansearch +++ man2html/scripts/cgi-bin/man/mansearch @@ -153,7 +153,7 @@ } print "