From 4a10b73e0fefde6590881050da7f62d74168e669 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Thu, 25 Nov 2010 15:00:12 +0000 Subject: [PATCH] magic text fixes from jan kaluza --- magic/Magdir/animation | 4 +-- magic/Magdir/apple | 4 +-- magic/Magdir/commands | 64 +++++++++++++++++++------------------- magic/Magdir/diff | 4 +-- magic/Magdir/games | 4 +-- magic/Magdir/images | 4 +-- magic/Magdir/kde | 8 ++--- magic/Magdir/kml | 6 ++-- magic/Magdir/magic | 4 +-- magic/Magdir/mail.news | 30 +++++++++--------- magic/Magdir/mime | 6 ++-- magic/Magdir/msdos | 4 +-- magic/Magdir/printer | 4 +-- magic/Magdir/python | 4 +-- magic/Magdir/revision | 4 +-- magic/Magdir/sgi | 4 +-- magic/Magdir/sgml | 42 ++++++++++++------------- magic/Magdir/varied.script | 10 +++--- 18 files changed, 105 insertions(+), 105 deletions(-) diff --git a/magic/Magdir/animation b/magic/Magdir/animation index 13513cb5..e1b034c1 100644 --- a/magic/Magdir/animation +++ b/magic/Magdir/animation @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: animation,v 1.42 2010/08/13 16:13:01 christos Exp $ +# $File: animation,v 1.43 2010/09/20 19:19:16 rrt Exp $ # animation: file(1) magic for animation/movie formats # # animation formats @@ -741,7 +741,7 @@ # X3D (Extensible 3D) [http://www.web3d.org/specifications/x3d-3.0.dtd] # From Michel Briand -0 string \20 search/1000/cw \15 string >\0 %s script text executable -0 string #!\ /usr/bin/env a ->16 string >\0 %s script text executable +0 string/t #!/usr/bin/env a +>15 string/t >\0 %s script text executable +0 string/t #!\ /usr/bin/env a +>16 string/t >\0 %s script text executable # PHP scripts # Ulf Harnhammar @@ -85,7 +85,7 @@ 0 string Zend\x00 PHP script Zend Optimizer data -0 string $! DCL command file +0 string/t $! DCL command file # Type: Pdmenu # URL: http://packages.debian.org/pdmenu diff --git a/magic/Magdir/diff b/magic/Magdir/diff index 397add4a..3eeced08 100644 --- a/magic/Magdir/diff +++ b/magic/Magdir/diff @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: diff,v 1.10 2009/09/19 16:28:08 christos Exp $ # diff: file(1) magic for diff(1) output # 0 search/1 diff\ diff output text @@ -16,4 +16,4 @@ !:mime text/x-diff # bsdiff: file(1) magic for bsdiff(1) output -0 string BSDIFF40 bsdiff(1) patch file +0 string/t BSDIFF40 bsdiff(1) patch file diff --git a/magic/Magdir/games b/magic/Magdir/games index 13592e1a..b67397d8 100644 --- a/magic/Magdir/games +++ b/magic/Magdir/games @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: games,v 1.10 2010/08/13 16:13:01 christos Exp $ +# $File: games,v 1.11 2010/09/20 19:19:17 rrt Exp $ # games: file(1) for games # Fabio Bonelli @@ -180,7 +180,7 @@ # Modified by (1): Abel Cheung (regex, more game format) # FIXME: Some games don't have GM (game type) 0 regex \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format ->2 search/0x200 GM[ +>2 search/0x200/b GM[ >>&0 string 1] (Go) >>&0 string 2] (Othello) >>&0 string 3] (chess) diff --git a/magic/Magdir/images b/magic/Magdir/images index a2e2af21..66443e30 100644 --- a/magic/Magdir/images +++ b/magic/Magdir/images @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: images,v 1.68 2010/09/20 19:19:17 rrt Exp $ +# $File: images,v 1.69 2010/10/20 20:22:58 christos Exp $ # images: file(1) magic for image formats (see also "iff", and "c-lang" for # XPM bitmaps) # @@ -34,7 +34,7 @@ # The next byte following the magic is always whitespace. 0 search/1 P1 Netpbm PBM image text !:mime image/x-portable-bitmap -0 search/1 P2 Netpbm PGM image text +0 search/1b P2 Netpbm PGM image text !:mime image/x-portable-greymap 0 search/1 P3 Netpbm PPM image text !:mime image/x-portable-pixmap diff --git a/magic/Magdir/kde b/magic/Magdir/kde index 5fdea5fc..06e5d9be 100644 --- a/magic/Magdir/kde +++ b/magic/Magdir/kde @@ -1,11 +1,11 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: kde,v 1.4 2009/09/19 16:28:10 christos Exp $ # kde: file(1) magic for KDE -0 string [KDE\ Desktop\ Entry] KDE desktop entry +0 string/t [KDE\ Desktop\ Entry] KDE desktop entry !:mime application/x-kdelnk -0 string #\ KDE\ Config\ File KDE config file +0 string/t #\ KDE\ Config\ File KDE config file !:mime application/x-kdelnk -0 string #\ xmcd xmcd database file for kscd +0 string/t #\ xmcd xmcd database file for kscd !:mime text/x-xmcd diff --git a/magic/Magdir/kml b/magic/Magdir/kml index 6a296cb0..cef6e86d 100644 --- a/magic/Magdir/kml +++ b/magic/Magdir/kml @@ -1,12 +1,12 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: kml,v 1.2 2009/09/19 16:28:10 christos Exp $ # Type: Google KML, formerly Keyhole Markup Language # Future development of this format has been handed # over to the Open Geospatial Consortium. # http://www.opengeospatial.org/standards/kml/ # From: Asbjoern Sloth Toennesen -0 string \20 search/400 \ xmlns= >>&0 regex ['"]http://earth.google.com/kml Google KML document !:mime application/vnd.google-earth.kml+xml @@ -22,7 +22,7 @@ # From: Asbjoern Sloth Toennesen >>&0 regex ['"]http://www.opengis.net/kml OpenGIS KML document !:mime application/vnd.google-earth.kml+xml ->>>&1 string 2.2 \b, version 2.2 +>>>&1 string/t 2.2 \b, version 2.2 #------------------------------------------------------------------------------ # Type: Google KML Archive (ZIP based) diff --git a/magic/Magdir/magic b/magic/Magdir/magic index 91d19b42..2d39ed3a 100644 --- a/magic/Magdir/magic +++ b/magic/Magdir/magic @@ -1,9 +1,9 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: magic,v 1.9 2009/09/19 16:28:10 christos Exp $ # magic: file(1) magic for magic files # -0 string #\ Magic magic text file for file(1) cmd +0 string/t #\ Magic magic text file for file(1) cmd 0 lelong 0xF11E041C magic binary file for file(1) cmd >4 lelong x (version %d) (little endian) 0 belong 0xF11E041C magic binary file for file(1) cmd diff --git a/magic/Magdir/mail.news b/magic/Magdir/mail.news index 07ee23ce..77d37f56 100644 --- a/magic/Magdir/mail.news +++ b/magic/Magdir/mail.news @@ -1,36 +1,36 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: mail.news,v 1.17 2009/09/19 16:28:10 christos Exp $ # mail.news: file(1) magic for mail and news # # Unfortunately, saved netnews also has From line added in some news software. #0 string From mail text # There are tests to ascmagic.c to cope with mail and news. -0 string Relay-Version: old news text +0 string/t Relay-Version: old news text !:mime message/rfc822 -0 string #!\ rnews batched news text +0 string/t #!\ rnews batched news text !:mime message/rfc822 -0 string N#!\ rnews mailed, batched news text +0 string/t N#!\ rnews mailed, batched news text !:mime message/rfc822 -0 string Forward\ to mail forwarding text +0 string/t Forward\ to mail forwarding text !:mime message/rfc822 -0 string Pipe\ to mail piping text +0 string/t Pipe\ to mail piping text !:mime message/rfc822 -0 string Return-Path: smtp mail text +0 string/t Return-Path: smtp mail text !:mime message/rfc822 -0 string Path: news text +0 string/t Path: news text !:mime message/news -0 string Xref: news text +0 string/t Xref: news text !:mime message/news -0 string From: news or mail text +0 string/t From: news or mail text !:mime message/rfc822 -0 string Article saved news text +0 string/t Article saved news text !:mime message/news -0 string BABYL Emacs RMAIL text -0 string Received: RFC 822 mail text +0 string/t BABYL Emacs RMAIL text +0 string/t Received: RFC 822 mail text !:mime message/rfc822 -0 string MIME-Version: MIME entity text -#0 string Content- MIME entity text +0 string/t MIME-Version: MIME entity text +#0 string/t Content- MIME entity text # TNEF files... 0 lelong 0x223E9F78 Transport Neutral Encapsulation Format diff --git a/magic/Magdir/mime b/magic/Magdir/mime index 91353a84..5e57366f 100644 --- a/magic/Magdir/mime +++ b/magic/Magdir/mime @@ -1,9 +1,9 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: mime,v 1.5 2009/09/19 16:28:10 christos Exp $ # mime: file(1) magic for MIME encoded files # -0 string Content-Type:\ +0 string/t Content-Type:\ >14 string >\0 %s -0 string Content-Type: +0 string/t Content-Type: >13 string >\0 %s diff --git a/magic/Magdir/msdos b/magic/Magdir/msdos index cf52afae..7b5b5594 100644 --- a/magic/Magdir/msdos +++ b/magic/Magdir/msdos @@ -1,12 +1,12 @@ #------------------------------------------------------------------------------ -# $File: msdos,v 1.68 2010/03/18 19:51:08 christos Exp $ +# $File: msdos,v 1.69 2010/09/20 18:55:20 rrt Exp $ # msdos: file(1) magic for MS-DOS files # # .BAT files (Daniel Quinlan, quinlan@yggdrasil.com) # updated by Joerg Jenderek at Oct 2008 -0 string @ +0 string/t @ >1 string/cW \ echo\ off DOS batch file text !:mime text/x-msdos-batch >1 string/cW echo\ off DOS batch file text diff --git a/magic/Magdir/printer b/magic/Magdir/printer index 8fd6e68d..e7380243 100644 --- a/magic/Magdir/printer +++ b/magic/Magdir/printer @@ -1,11 +1,11 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: printer,v 1.22 2009/09/19 16:28:11 christos Exp $ # printer: file(1) magic for printer-formatted files # # PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com) -0 string %! PostScript document text +0 string/t %! PostScript document text !:mime application/postscript !:apple ASPSTEXT >2 string PS-Adobe- conforming diff --git a/magic/Magdir/python b/magic/Magdir/python index 7abe0341..065f875a 100644 --- a/magic/Magdir/python +++ b/magic/Magdir/python @@ -1,11 +1,11 @@ #------------------------------------------------------------------------------ -# $File: python,v 1.12 2009/10/27 14:49:57 christos Exp $ +# $File: python,v 1.13 2010/08/12 16:16:44 christos Exp $ # python: file(1) magic for python # # From: David Necas # often the module starts with a multiline string -0 string """ a python script text executable +0 string/t """ a python script text executable # MAGIC as specified in Python/import.c (1.5 to 2.7a0 and 3.1a0, assuming # that Py_UnicodeFlag is off for Python 2) # 20121 ( YEAR - 1995 ) + MONTH + DAY (little endian followed by "\r\n" diff --git a/magic/Magdir/revision b/magic/Magdir/revision index f41aa9b9..4804f25f 100644 --- a/magic/Magdir/revision +++ b/magic/Magdir/revision @@ -1,9 +1,9 @@ #------------------------------------------------------------------------------ -# $File: revision,v 1.6 2009/09/19 16:28:12 christos Exp $ +# $File: revision,v 1.7 2010/09/20 19:19:17 rrt Exp $ # file(1) magic for revision control files # From Hendrik Scholz -0 string /1\ :pserver: cvs password text file +0 string/t /1\ :pserver: cvs password text file # Conary changesets # From: Jonathan Smith diff --git a/magic/Magdir/sgi b/magic/Magdir/sgi index d3080ea9..8c52b260 100644 --- a/magic/Magdir/sgi +++ b/magic/Magdir/sgi @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File$ +# $File: sgi,v 1.17 2009/09/19 16:28:12 christos Exp $ # sgi: file(1) magic for Silicon Graphics applications # @@ -61,7 +61,7 @@ >11 byte x dataformat %d # Alias Maya files -0 string //Maya ASCII Alias Maya Ascii File, +0 string/t //Maya ASCII Alias Maya Ascii File, >13 string >\0 version %s 8 string MAYAFOR4 Alias Maya Binary File, >32 string >\0 version %s scene diff --git a/magic/Magdir/sgml b/magic/Magdir/sgml index 6c3a3a34..2a8de4c6 100644 --- a/magic/Magdir/sgml +++ b/magic/Magdir/sgml @@ -1,8 +1,8 @@ #------------------------------------------------------------------------------ -# $File: sgml,v 1.23 2009/09/19 16:28:12 christos Exp $ +# $File: sgml,v 1.24 2009/09/19 17:31:35 christos Exp $ # Type: SVG Vectorial Graphics # From: Noel Torres -0 string \15 string >\0 >>19 search/4096 \15 string >\0 >>19 search/4096 \15 string >\0 >>19 search/4096/cWbt \15 string >\0 >>19 search/4096/cWbt \15 string >\0 >>19 search/4096/cWbt \15 search/1 >\0 %.3s document text >>23 search/1 \3 string >\0 %s script text executable -0 string #!\t/ a +0 string/t #!\t/ a >3 string >\0 %s script text executable -0 string #!/ a +0 string/t #!/ a >2 string >\0 %s script text executable -0 string #!\ script text executable +0 string/t #!\ script text executable >3 string >\0 for %s # From: arno -- 2.40.0