lib/mc.ext.in: Match log files as plain text; match local man pages; add fixes

for gzipped man pages to plain and bzipped man pages.
This commit is contained in:
Leonard den Ottolander 2005-07-03 15:04:11 +00:00
parent aac7b35bfc
commit b7552a4e40
2 changed files with 18 additions and 12 deletions

View File

@ -1,3 +1,9 @@
2005-07-03 Leonard den Ottolander <leonard * den ottolander nl>
* lib/mc.ext.in: Match files in /log/ or /logs/ directories as plain
text not man page; match local man pages; add fixes for gzipped man
pages to plain and bzipped man pages.
2005-07-03 Leonard den Ottolander <leonard * den ottolander nl> 2005-07-03 Leonard den Ottolander <leonard * den ottolander nl>
* lib/mc.ext.in: Move matches for plain compressed files down. * lib/mc.ext.in: Move matches for plain compressed files down.

View File

@ -251,9 +251,9 @@ shell/.info
regex/\.(so|so\.[0-9\.]*)$ regex/\.(so|so\.[0-9\.]*)$
View=%view{ascii} file %f && nm %f View=%view{ascii} file %f && nm %f
regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|n)|\.man)$ regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
Open=nroff @MAN_FLAGS@ @MANDOC@ %f | %var{PAGER:more} Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} nroff @MAN_FLAGS@ @MANDOC@ %f View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac
# Troff with me macros. # Troff with me macros.
# Exception - "read.me" is not a nroff file. # Exception - "read.me" is not a nroff file.
@ -271,17 +271,17 @@ shell/.ms
View=%view{ascii,nroff} nroff @MAN_FLAGS@ -ms %f View=%view{ascii,nroff} nroff @MAN_FLAGS@ -ms %f
# Manual page - compressed # Manual page - compressed
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.g?[Zz]$ regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
Open=gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ | %var{PAGER:more} Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} case %d in /var/log*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz$ regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
Open=bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ | %var{PAGER:more} Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
regex/([^0-9]|^[^\.]*)\.([1-9][a-z]?|n)\.bz2$ regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
Open=bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ | %var{PAGER:more} Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
View=%view{ascii,nroff} bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
### Images ### ### Images ###