Commit 14a9bf8b authored by Brian White's avatar Brian White

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

parent febbc84b
mime-support (3.37-1) unstable; urgency=medium
* added new mime.types (closes: #364831, #370344, #360038)
* clarified "view=" option (closes: #372149)
* allow multiple package directory (closes: #355894)
-- Brian White <bcwhite@pobox.com> Sun, 16 Jul 2006 21:25:43 -0400
mime-support (3.36-1) unstable; urgency=medium
* added .eml, 3gp, and 7z mime types
* new returns non-zero exit code if can't handle file (closes: #313640)
* now returns non-zero exit code if can't handle file (closes: #313640)
* added new mime.types (closes: #316200, #329208)
-- Brian White <bcwhite@pobox.com> Thu, 2 Mar 2006 20:09:20 -0500
......
......@@ -32,6 +32,7 @@ application/atomicmail
application/batch-SMTP
application/beep+xml
application/cals-1840
application/cap cap pcap
application/commonground
application/cu-seeme cu
application/cybercash
......@@ -181,6 +182,8 @@ application/vnd.fujixerox.ddd
application/vnd.fujixerox.docuworks
application/vnd.fujixerox.docuworks.binder
application/vnd.fut-misnet
application/vnd.google-earth.kml+xml kml
application/vnd.google-earth.kmz kmz
application/vnd.grafeq
application/vnd.groove-account
application/vnd.groove-identity-message
......@@ -303,7 +306,7 @@ application/vnd.smaf mmf
application/vnd.sss-cod
application/vnd.sss-dtf
application/vnd.sss-ntf
application/vnd.stardivision.calc sdc
application/vnd.stardivision.chart sdc
application/vnd.stardivision.draw sda
application/vnd.stardivision.impress sdd sdp
application/vnd.stardivision.math smf
......@@ -316,9 +319,9 @@ application/vnd.sun.xml.draw sxd
application/vnd.sun.xml.draw.template std
application/vnd.sun.xml.impress sxi
application/vnd.sun.xml.impress.template sti
application/vnd.sun.xml.math sxm
application/vnd.sun.xml.writer sxw
application/vnd.sun.xml.writer.global sxg
application/vnd.sun.xml.writer.math sxm
application/vnd.sun.xml.writer.template stw
application/vnd.svd
application/vnd.swiftview-ics
......@@ -363,6 +366,8 @@ application/x-abiword abw
application/x-apple-diskimage dmg
application/x-bcpio bcpio
application/x-bittorrent torrent
application/x-cbr cbr
application/x-cbz cbz
application/x-cdf cdf
application/x-cdlink vcd
application/x-chess-pgn pgn
......@@ -407,6 +412,7 @@ application/x-kspread ksp
application/x-kword kwd kwt
application/x-latex latex
application/x-lha lha
application/x-lyx lyx
application/x-lzh lzh
application/x-lzx lzx
application/x-maker frm maker frame fm fb book fbdoc
......@@ -636,8 +642,8 @@ multipart/signed
multipart/voice-message
text/calendar ics icz
text/comma-separated-values csv
text/css css
text/csv csv
text/directory
text/english
text/enriched
......
......@@ -467,6 +467,7 @@ foreach (@files) {
$linked = symlink("$pwd/$file",$tmplink);
}
}
print STDERR " - filename contains shell meta-characters; aliased to '$tmplink'\n" if $debug;
$comm =~ s/([^%])%s/$1$tmplink/g;
} else {
$comm =~ s/([^%])%s/$1$file/g;
......
......@@ -20,16 +20,18 @@ umask(022);
# Program Constants
#
$debug = 0;
$conffile = "/etc/update-mime.conf";
$mailcap = "/etc/mailcap";
$mailcapdef = "/usr/lib/mime/mailcap";
$mimedir = "/usr/lib/mime/packages";
$orderfile = "/etc/mailcap.order";
$defpriority= 5;
#$mailcap = "/home/bcwhite/tmp/mailcap";
#$mimedir = "/home/bcwhite/tmp/mime";
#$orderfile = "/home/bcwhite/tmp/mime.order";
#
# Allow local customizations
#
do $config if -f $config;
#
......@@ -48,7 +50,8 @@ sub ReadEntries
$counter=1;
foreach $file (glob "$mimedir/*") {
# foreach $file (glob "$mimedir/*") {
foreach $file (map { glob $_.'/*' } split ':',$mimedir) {
next if ($file =~ m!(^|/)(\.|\#)|(\~)$!);
($pkg) = ($file =~ m|/([^/]*)$|);
print STDERR "$pkg:\n" if $debug;
......
......@@ -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 Aug 1998" "Debian Project" "Update MIME Programs"
.TH UPDATE-MIME 8 "16th Jul 2006" "Debian Project" "Update MIME Programs"
.SH NAME
update\-mime \- create or update MIME information
.SH SYNOPSIS
......@@ -20,7 +20,9 @@ The order of entries in the
.I /etc/mailcap
file can be altered by editing the
.I /etc/mailcap.order
file. Please see the mailcap.order(5) man page for more information.
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
......@@ -51,12 +53,11 @@ rules using the default priority will get chosen first. If using
that rule a "last resort".
.SS Commands
.TP
.BI view=<program-string>
.BI <program-string>
Specifies the program to run to view a file of the given content-type.
Actually, the "view=" must be omitted and the viewer program must be
the second value on the line (after the mime type).
.B This option connot be omitted.
When writing an entry that has no viewer, use a value of
.B This option setting connot be omitted.
An implicit "view=" can be considered before it. When writing an
entry that has no viewer, use a value of
.I false
in this space.
.TP
......
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