From: Peter Avalos Date: Tue, 12 Dec 2006 18:27:25 +0000 (+0000) Subject: We don't use magic2mime, so remove it. X-Git-Tag: v2.0.1~3982 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/fbe3f788d50ed06aff6392bb1d1cd469e41b39f5 We don't use magic2mime, so remove it. --- diff --git a/contrib/file-4/README.DELETED b/contrib/file-4/README.DELETED index 9d605e1959..8a395e5cd4 100644 --- a/contrib/file-4/README.DELETED +++ b/contrib/file-4/README.DELETED @@ -19,6 +19,7 @@ doc/Makefile.am doc/Makefile.in magic/Makefile.am magic/Makefile.in +magic/magic2mime python src/Makefile.am src/Makefile.in diff --git a/contrib/file-4/magic/magic2mime b/contrib/file-4/magic/magic2mime deleted file mode 100644 index f3fbe2675a..0000000000 --- a/contrib/file-4/magic/magic2mime +++ /dev/null @@ -1,68 +0,0 @@ -#! /usr/bin/env perl -# -*- PERL -*- -# $Id: magic2mime,v 1.3 2006/03/02 22:10:26 christos Exp $ -# Copyright (c) 1996, 1997 vax@linkdead.paranoia.com (VaX#n8) -# -# Usage: echo 'your-file-output-here' | file_to_ctype.pl -# file -b files... | file_to_ctype.pl -# It acts like a filter, reading from STDIN and any files on the command -# line, printing to STDOUT. - -## refs -# http://www.faqs.org/faqs/mail/mime-faq/part1/index.html -# comp.mail.mime FAQ -# ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types -# assigned content-types -# ftp://ftp.uu.net/inet/rfc/rfc-index -# RFC index; search for MIME - -@mapping = -( - # defaults - 'data', 'application/octet-stream', - 'text', 'text/plain', - # more specific - '^Rich Text Format data', 'text/richtext', - '^HTML document text', 'text/html', - '^exported SGML document text', 'text/sgml', - 'mail text', 'message/rfc822', - 'news text', 'message/news', - '^PostScript document text', 'application/postscript', - '^BinHex binary text', 'application/mac-binhex40', - '^Zip archive data', 'application/zip', - '^Microsoft Word', 'application/msword', - '^PGP key', 'application/pgp-keys', - '^PGP encrypted', 'application/pgp-encrypted', - '^PGP armored data signature', 'application/pgp-signature', - '^JPEG image', 'image/jpeg', - '^GIF image', 'image/gif', - '^PNG image', 'image/png', - '^TIFF image', 'image/tiff', - 'Computer Graphics Metafile', 'image/cgf', - '^Sun/NeXT audio data', 'audio/basic', - '^MPEG', 'video/mpeg', - '^Apple QuickTime movie', 'video/quicktime', - # made up by me - '^bitmap', 'image/x-bitmap', - '^PC bitmap data, Windows 3.x format', 'image/x-msw3bmp', - '^FLI', 'video/x-fli', - '^FLC', 'video/x-flc', - 'AVI data', 'video/x-avi', - 'WAVE', 'audio/x-wav', - 'VOC', 'audio/x-voc', -); - -local($mimetype,$index,$regexp); -while (<>) - { - chop; - $index = $#mapping - 1; - while ($index > -1 && !defined($mimetype)) - { - $mimetype = $mapping[$index + 1] if (/$mapping[$index]/); - $index -= 2; - } - print "$mimetype\n"; - undef $mimetype; # hack - } -0;