Magellan Linux

Annotation of /trunk/man/patches/man-1.6e-man2html-bzip2.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 324 - (hide annotations) (download)
Mon Aug 20 16:04:40 2007 UTC (16 years, 10 months ago) by niro
File size: 1452 byte(s)
-missing cron file and added some fixes

1 niro 324 --- man2html/glimpse_filters
2     +++ man2html/glimpse_filters
3     @@ -1,3 +1,4 @@
4     +*.bz2 bzip2 -d -c
5     *.gz gzip -d -c
6     *.Z gzip -d -c
7    
8     --- man2html/scripts/cgi-bin/man/man2html
9     +++ man2html/scripts/cgi-bin/man/man2html
10     @@ -87,6 +87,9 @@
11     if [ -r "$PAGE" ]
12     then
13     case "$PAGE" in
14     + *.bz2)
15     + bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
16     + ;;
17     *.gz)
18     zcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
19     ;;
20     @@ -94,6 +97,9 @@
21     "$MAN2HTML" "$LL" "$PAGE"
22     ;;
23     esac
24     +elif [ -r "$PAGE".bz2 ]
25     +then
26     + bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE"
27     elif [ -r "$PAGE".gz ]
28     then
29     zcat "$PAGE".gz | "$MAN2HTML" "$LL" -D "$PAGE"
30     --- man2html/scripts/cgi-bin/man/mansearch
31     +++ man2html/scripts/cgi-bin/man/mansearch
32     @@ -153,7 +153,7 @@
33     }
34     print "<DT> <a href=\"" cgipath "/man2html?" fullname "\">";
35     textname = filename;
36     - sub(/\.(gz)|Z|z$/, "", textname);
37     + sub(/\.(gz)|(bz2)|Z|z$/, "", textname);
38     sub(/\./, "(", textname);
39     textname = textname ")";
40     print textname;
41     --- man2html/scripts/cgi-bin/man/mansec
42     +++ man2html/scripts/cgi-bin/man/mansec
43     @@ -128,7 +128,7 @@
44     # Print out alphabetic quick index and other links
45     }
46     # Split page.n into "page" and "n" and generate an entry
47     - sub(/[.]([zZ]|(gz))$/, "", manpage);
48     + sub(/[.]([zZ]|(gz)|(bz2))$/, "", manpage);
49     match(manpage, /[.][^.]+$/);
50     title = substr(manpage, 1, RSTART - 1);
51     if (section != "all") {