Commit ec470c88 authored by Brian White's avatar Brian White

git-debimport mime-support_3.51-1.tar.gz

parent bf56c6dc
mime-support (3.51-1) unstable; urgency=medium
* added numerous new mime.types (closes: 585040, 563067, 578392, 599216)
* can generate local user .mailcap file (closes: 569738, 445267)
* pass --debug to sub-instances (closes: 533721)
* a little more documentation (closes: 402778)
-- Brian White <bcwhite@pobox.com> Fri, 12 Nov 2010 20:52:43 +0100
mime-support (3.49-1) unstable; urgency=medium
* added numerous new mime.types (closes: 585040, 563067, 578392)
* can generate local user .mailcap file (closes: 569738, 445267)
* pass --debug to sub-instances (closes: 533721)
* a little more documentation (closes: 402778)
-- Brian White <bcwhite@pobox.com> (not uploaded due to key issues)
mime-support (3.48-1) unstable; urgency=medium
* use only "copiousoutput" rules for "cat" action (closes: 533723)
......
......@@ -3,3 +3,8 @@ dh_md5sums
dh_md5sums
dh_md5sums
dh_md5sums
dh_md5sums
dh_md5sums
dh_md5sums
dh_md5sums
dh_md5sums
......@@ -33,8 +33,6 @@ binary-indep:
install -m 644 mailcap.order debian/tmp/etc/
install -m 644 mailcap.man debian/tmp/usr/share/man/man5/mailcap.5
install -m 644 mailcap.order.man debian/tmp/usr/share/man/man5/mailcap.order.5
# install -m 755 install-mime debian/tmp/usr/sbin/
# install -m 644 install-mime.man debian/tmp/usr/share/man/man8/install-mime.8
install -m 755 update-mime debian/tmp/usr/sbin/
install -m 644 update-mime.man debian/tmp/usr/share/man/man8/update-mime.8
install -m 755 run-mailcap debian/tmp/usr/bin/
......
This diff is collapsed.
......@@ -10,7 +10,7 @@
###############################################################################
$debug=0;
$debug=($ENV{RUN_MAILCAP_DEBUG} || 0);
$norun=0;
$nopager=0;
$etcmimetyp="/etc/mime.types";
......@@ -357,6 +357,9 @@ foreach (@ARGV) {
}
}
# Pass --debug to sub-calls to this program.
$ENV{RUN_MAILCAP_DEBUG} = 1 if $debug;
unless ($action) {
if ($0 =~ m!(^|/)view$!) { $action="view"; }
elsif ($0 =~ m!(^|/)see$!) { $action="view"; }
......
......@@ -58,7 +58,7 @@ All options are in the form --<opt>=<value>.
Performs the specified action on the files. Valid actions are
.IR view ,
.IR cat
(like view but never paged) ,
(uses only "copiousoutput" rules and sends output to STDOUT) ,
.IR compose ,
.IR composetyped ,
.I edit
......
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" run-mailcap and this manpage were written by Brian White and
.\" have been placed in the public domain (the only true "free").
.\"
.TH RUN-MAILCAP 1 "14th Mar 1998" "Debian Project" "Run Mailcap Programs"
.SH NAME
run-mailcap, see, edit, compose, print \- execute programs via entries in the
.I mailcap
file
.SH SYNOPSIS
.B run-mailcap
\-\-action=<action> [\-\-debug=<value>]
[<mime-type>:[<encoding>:]]<filename> [...]
The
.BR see ,
.BR edit ,
.B compose
and
.B print
versions are just aliases that default to the view, edit, compose, and
print actions (respectively).
You can make this your default pager and/or editor by adding the
following to your shell startup:
shell file line(s) to add
~~~~~ ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sh ~/.profile PAGER=/usr/bin/see; export PAGER
EDITOR=/usr/bin/edit; export EDITOR
csh ~/.login setenv PAGER /usr/bin/see
setenv EDITOR /usr/bin/edit
.SH DESCRIPTION
.PP
.B run-mailcap
(or any of its aliases) will use the given action to process each
mime-type/file in turn. Each file is is specified as its mime-type,
its encoding (eg. compression), and filename together, separated by
colons. If the mime-type is omitted, an attempt to determine the type
is made by trying to match the file's extension with those in the
.I mime.types
files. If the encoding is omitted, it will also be determined from
the file's extensions. Currently supported encodings are
.B gzip
(.gz),
.B bzip
(.bz),
.B bzip2
(.bz2), and
.B compress
(.Z). A filename of "-" can be used to mean "standard input", but
then a mime-type
.B must
be specied.
Both the user's files (~/.mailcap; ~/.mime.types) and the system files
(/etc/mailcap; /etc/mime.types) are searched in turn for information.
.SS EXAMPLES
see picture.jpg
print output.ps.gz
compose text/html:index.htm
extract-mail-attachment msg.txt | see image/tiff:gzip:-
.SS OPTIONS
All options are in the form --<opt>=<value>.
.TP
.BI \-\-action=<action>
Performs the specified action on the files. Valid actions are
.IR view ,
.IR compose ,
.IR composetyped ,
.I edit
and
.IR print .
If no action is specified, the action will be determined by how the
program was called.
.TP
.BI \-\-debug=<value>
Turns on extra information to find out what is happening. Any value
other than zero (0) will turn on debugging output.
.SH "SEE ALSO"
.BR update-mime "(8)"
.SH AUTHOR
.B run-mailcap
(and its aliases) was written by Brian White <bcwhite@pobox.com>.
.SH COPYRIGHT
.B run-mailcap
(and its aliases) is in the public domain (the only true "free").
......@@ -25,7 +25,17 @@ $mailcap = "/etc/mailcap";
$mailcapdef = "/usr/lib/mime/mailcap";
$mimedir = "/usr/lib/mime/packages";
$orderfile = "/etc/mailcap.order";
$defpriority= 5;
$defpriority = 5;
$localgen = 0;
# Allow local run
if ($ARGV[0] eq "--local") {
$conffile = "$ENV{HOME}/.update-mime.conf";
$mailcap = "$ENV{HOME}/.mailcap";
$orderfile = "$ENV{HOME}/.mailcap.order";
$localgen = 1;
}
#
......
......@@ -2,7 +2,7 @@
.\" Update-mime and this manpage were written by Brian White and
.\" have been placed in the public domain (the only true "free").
.\"
.TH UPDATE-MIME 8 "16th Jul 2006" "Debian Project" "Update MIME Programs"
.TH UPDATE-MIME 8 "3rd Sep 2010" "Debian Project" "Update MIME Programs"
.SH NAME
update\-mime \- create or update MIME information
.SH SYNOPSIS
......@@ -15,6 +15,13 @@ updates the
.B /etc/mailcap
file to reflect mime information changed by a Debian package during
installation or removal.
.SS OPTIONS
.BI \-\-local
Generate files in the current user's home directory instead of /etc.
This allows users to create a custom ordering configuration and get
a complete ~/.mailcap file out of it.
.SH OVERRIDING ORDER
The order of entries in the
.I /etc/mailcap
......@@ -23,6 +30,7 @@ file can be altered by editing the
file. Please see the
.BR mailcap.order(5)
man page for more information.
.SH CREATING ENTRIES
To create entries in the mailcap file, packages need to create a file
in the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment