Commit 1a789787 authored by Brian White's avatar Brian White

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

parent 44c8eaff
#! /bin/sh -e
if [ "$1" = "configure" ]; then
if [ -d /usr/doc -a ! -e /usr/doc/mime-support -a -d /usr/share/doc/mime-support ]; then
ln -sf ../share/doc/mime-support /usr/doc/mime-support
fi
fi
# Remove the old status directory
if [ ! -e
rm -rf /var/lib/mime
# Run the update program
if [ -x /usr/sbin/update-mime ]; then
update-mime
fi
mime-support (3.40-1) unstable; urgency=medium
* added new mime.types (closes: 432273, 418564, 425014, 421678, 402559, 437724)
* fixed conf-file variable name (closes: 438859)
* don't suggest using as pager/editor (closes: 445700)
* fixed synopsis in man-page (closes: 413165)
* fixed mistake converting to lower-case (closes: 445262)
* make "see" an alternative to "view" (closes: 457898)
* allow --debug (instead of "--debug=1")
-- Brian White <bcwhite@pobox.com> Tue, 1 Jan 2008 17:35:48 +0100
mime-support (3.39-1) unstable; urgency=medium
* added new mime.types
......
......@@ -10,6 +10,12 @@ rm -fr /var/lib/mime
rm -f /usr/sbin/install-mime
# Use "see" as alternative for "view"
update-alternatives \
--install /usr/bin/view view /usr/bin/see 90 \
--slave /usr/share/man/man1/view.1.gz view.1.gz /usr/share/man/man1/see.1.gz
# Run the update program
if [ -x /usr/sbin/update-mime ]; then
update-mime
......
......@@ -28,7 +28,7 @@
application/activemessage
application/andrew-inset ez
application/applefile
application/atom atom
application/atom+xml atom
application/atomcat+xml atomcat
application/atomserv+xml atomsrv
application/atomicmail
......@@ -39,6 +39,7 @@ application/cap cap pcap
application/commonground
application/cu-seeme cu
application/cybercash
application/davmount+xml davmount
application/dca-rft
application/dec-dx
application/docbook+xml
......@@ -66,12 +67,12 @@ application/isup
application/java-archive jar
application/java-serialized-object ser
application/java-vm class
application/m3g m3g
application/mac-binhex40 hqx
application/mac-compactpro cpt
application/macwriteii
application/marc
application/mathematica nb
application/mathematica-old
application/mathematica nb nbp
application/ms-tnef
application/msaccess mdb
application/msword doc dot
......@@ -81,7 +82,7 @@ application/ocsp-request
application/ocsp-response
application/octet-stream bin
application/oda oda
application/ogg ogg
application/ogg ogg ogm
application/parityfec
application/pdf pdf
application/pgp-encrypted
......@@ -94,7 +95,7 @@ application/pkcs7-signature
application/pkix-cert
application/pkix-crl
application/pkixcmp
application/postscript ps ai eps
application/postscript ps ai eps espi epsf eps2 eps3
application/prs.alvestrand.titrax-sheet
application/prs.cww
application/prs.nprend
......@@ -128,6 +129,7 @@ application/xhtml+xml xhtml xht
application/xml xml xsl
application/xml-dtd
application/xml-external-parsed-entity
application/xspf+xml xspf
application/zip zip
application/vnd.3M.Post-it-Notes
application/vnd.accpac.simply.aso
......@@ -404,6 +406,7 @@ application/x-ica ica
application/x-internet-signup ins isp
application/x-iphone iii
application/x-iso9660-image iso
application/x-jam jam
application/x-java-applet
application/x-java-bean
application/x-java-jnlp-file jnlp
......@@ -428,7 +431,7 @@ application/x-ms-wmz wmz
application/x-msdos-program com exe bat dll
application/x-msi msi
application/x-netcdf nc
application/x-ns-proxy-autoconfig pac
application/x-ns-proxy-autoconfig pac dat
application/x-nwc nwc
application/x-object o
application/x-oz-application oza
......@@ -437,6 +440,7 @@ application/x-pkcs7-crl crl
application/x-python-code pyc pyo
application/x-quicktimeplayer qtl
application/x-redhat-package-manager rpm
application/x-ruby rb
application/x-rx
application/x-sh sh
application/x-shar shar
......@@ -546,7 +550,7 @@ chemical/x-mmcif mcif
chemical/x-mol2 mol2
chemical/x-molconn-Z b
chemical/x-mopac-graph gpt
chemical/x-mopac-input mop mopcrt mpc dat zmt
chemical/x-mopac-input mop mopcrt mpc zmt
chemical/x-mopac-out moo
chemical/x-mopac-vib mvb
chemical/x-ncbi-asn1 asn
......@@ -658,7 +662,7 @@ text/html html htm shtml
text/iuls uls
text/mathml mml
text/parityfec
text/plain asc txt text pot
text/plain asc txt text pot brf
text/prs.lines.tag
text/rfc822-headers
text/richtext rtx
......@@ -732,6 +736,7 @@ video/vnd.mpegurl mxu
video/vnd.mts
video/vnd.nokia.interleaved-multimedia
video/vnd.vivo
video/x-flv flv
video/x-la-asf lsf lsx
video/x-mng mng
video/x-ms-asf asf asx
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -35,10 +35,10 @@ sub Usage {
my($error) = @_;
print STDERR $error,"\n\n" if $error;
print STDERR "Use: $0 <--opt=val> [...] [<mime-type>:[<encoding>:]]<file> [...]\n\n";
print STDERR "Use: $0 <--action=VAL> [--debug] [MIME-TYPE:[ENCODING:]]FILE [...]\n\n";
print STDERR "Options:\n";
print STDERR " action specify what action to do on these files (default=view)\n";
print STDERR " debug be verbose about what's going on (any non-zero value)\n";
print STDERR " debug be verbose about what's going on\n";
print STDERR "\n";
print STDERR "Mime-Type:\n";
print STDERR " any standard mime type designation in the form <class>/<subtype> -- if\n";
......@@ -77,9 +77,11 @@ sub ReadMimetypes {
print STDERR " - Reading mime.types file \"$file\"...\n" if $debug;
open(MIMETYPES,"<$file") || die "Error: could not read \"$file\" -- $!\n";
while (<MIMETYPES>) {
chomp; lc; s/\#.*$//;
chomp;
s/\#.*$//;
next if (m/^\s*$/);
$_=lc($_);
my($type,@exts) = split;
foreach (@exts) {
......@@ -125,6 +127,7 @@ sub ReadMailcap {
sub TempFile {
my($template) = @_;
my($cmd,$head,$tail,$tmpfile);
$template = "" unless (defined $template);
($head,$tail) = split(/%s/,$template,2);
......@@ -309,11 +312,15 @@ sub FileMimetype {
@files = ();
foreach (@ARGV) {
print STDERR " - parsing parameter \"$_\"\n" if $debug;
if (m!^(-h|--help)$!) {
Usage();
exit(0);
} elsif (m!^--(.*?)$!) {
print STDERR "Warning: definition of \"$1=$2\" overrides value \"${$1}\"\n" if ($ {$1} && $ {$1} != 1);
$ {$1}=1;
} elsif (m!^--(.*?)=(.*)$!) {
print STDERR "Warning: definition of \"$1=$2\" overrides value \"${$1}\"\n" if ($ {$1} && $ {$1} != $2);
$ {$1}=$2;
......
......@@ -2,15 +2,15 @@
.\" 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"
.TH RUN-MAILCAP 1 "1st Jan 2008" "Debian Project" "Run Mailcap Programs"
.SH NAME
run-mailcap, see, edit, compose, print \- execute programs via entries in the
run-mailcap, view, 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> [...]
\-\-action=ACTION [\-\-debug]
[MIME-TYPE:[ENCODING:]]FILE [...]
The
.BR see ,
......@@ -21,16 +21,6 @@ and
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
......
......@@ -31,7 +31,7 @@ $defpriority= 5;
#
# Allow local customizations
#
do $config if -f $config;
do $conffile if -f $conffile;
#
......
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