Use application/vnd.adobe.flash.movie for SWF.

http://www.iana.org/assignments/media-types/application/vnd.adobe.flash-movie
Add SWF test case.
Use application/vnd.nintendo.snes.rom for SNES ROMs, associate *.sfc with them.

http://www.iana.org/assignments/media-types/application/vnd.nintendo.snes.rom
Fix lua shebangs

https://bugs.freedesktop.org/show_bug.cgi?id=65284
Fix shell shebangs

Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>

https://bugs.freedesktop.org/show_bug.cgi?id=65284
Fix shebang detection for scripts

We should look from the 3rd character, not the 2nd one, as shebang
has 2 characters already ("#" and "!").
rename configure.in to configure.ac. Future release of autoconf will not support this name anymore.

https://bugs.freedesktop.org/show_bug.cgi?id=61334
rename INCLUDES to AM_CPPFLAGS

https://bugs.freedesktop.org/show_bug.cgi?id=61334
Simplify autogen.sh

By using autoreconf

https://bugs.freedesktop.org/show_bug.cgi?id=61334
Remove *.ogv as a glob for Theora videos

As we can't be certain that it is actually Theora video (could be
VP8 video as well). *.ogv is still associated with the more generic
video/ogg mime-type.

https://bugs.freedesktop.org/show_bug.cgi?id=53376
Improve Perl detection

https://bugs.freedesktop.org/show_bug.cgi?id=63612
OpenPGP clear text signatures aren't application/pgp-signature

RFC 3156 do not define the application/pgp-signature MIME type as
covering clear text signatures. We should not recognize clear text
signatures armor header as such.

https://bugs.freedesktop.org/show_bug.cgi?id=69794
Add more aliases for image/vnd.adobe.photoshop

https://bugs.freedesktop.org/show_bug.cgi?id=67275
Add Microsoft Publisher mime-type

https://bugs.freedesktop.org/show_bug.cgi?id=64946
Correct JPEG2000 definition

*.jpc and *.j2k relate to JPEG 2000 codestreams, not to JPEG 2000
images, so remove those globs.

Remove the jP magic, as it creates false positives (and add a test for
that). Also add the jp2 string magic.

With help from Steve Fosdick <other@fosdick.me.uk>

https://bugs.freedesktop.org/show_bug.cgi?id=11942
1.2
Add Aliases for OpenOffice Base and StarWriter

https://bugs.freedesktop.org/show_bug.cgi?id=70016
test: Call g_type_init() with older glib

Only call g_type_init() when compiling against an older glib.

https://bugs.freedesktop.org/show_bug.cgi?id=70255
Open the fdatasync() fd read/write

Otherwise it will fail for stricter OSes like NetBSD.

https://bugs.freedesktop.org/show_bug.cgi?id=70559