Browse Source

- changed to use dzil

master
Andreas Romeyke 2 months ago
parent
commit
050f8fa417
4 changed files with 12 additions and 115 deletions
  1. +0
    -11
      MANIFEST
  2. +0
    -31
      Makefile.PL
  3. +0
    -73
      README
  4. +12
    -0
      dist.ini

+ 0
- 11
MANIFEST View File

@@ -1,11 +0,0 @@
Changes
Makefile.PL
MANIFEST
README
t/File/FormatIdentification/Pronom.t
t/File/FormatIdentification/Regex.t
t/DROID_SignatureFile_V93.xml
lib/File/FormatIdentification/Pronom.pm
lib/File/FormatIdentification/Regex.pm
bin/pronom2wxhexeditor.pl
bin/pronom_statistics.pl

+ 0
- 31
Makefile.PL View File

@@ -1,31 +0,0 @@
use 5.024001;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'File::FormatIdentification::Pronom',
VERSION_FROM => 'lib/File/FormatIdentification/Pronom.pm', # finds $VERSION, requires EU::MM from perl >= 5.5
PREREQ_PM => {
"XML::LibXML" => 0,
"Carp" => 0,
"List::Util" => 0,
"Scalar::Util" => 0,
"YAML::XS" => 0,
"Moose" => 0,
"String::LCSS" => 0,
"Carp" => 0,
"Regexp::Assemble" => 0,
"Regexp::Optimizer" => 0,

},
ABSTRACT_FROM => 'lib/File/FormatIdentification/Pronom.pm', # retrieve abstract from module
AUTHOR => 'Andreas Romeyke <art1@andreas-romeyke.de>',
LICENSE => 'perl_5',
test => {
"TESTS" => "t/File/FormatIdentification/*.t"
},
EXE_FILES => [
"bin/pronom2wxhexeditor.pl",
"bin/pronom_statistics.pl"
],
);

+ 0
- 73
README View File

@@ -1,73 +0,0 @@
File-FormatIdentification-Pronom version 0.01
=============================================

The module allows to handle Droid signatures. Droid is a utility which
uses the PRONOM database to identify file formats.

See https://www.nationalarchives.gov.uk/PRONOM/ for details.

With this module you could:

* convert Droid signatures to Perl regular expressions
* analyze files and display which/where pattern of Droid signature matches via tag-files for wxHexEditor
* calc statistics about Droid signatures

The module is in early alpha state and should not be used in production.

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

This module requires these other modules and libraries:

* XML::LibXML
* Carp
* List::Util
* Scalar::Util
* YAML::XS
* Moose
* String::LCSS
* Regexp::Assemble
* Regexp::Optimizer

The script is only tested under GNU/Linux Debian (Stretch)

CALL

$> perl ./pronom2wxhexeditor.pl DROID-SIGNATURE.xml binaryfile

The first run produces a file "DROID-SIGNATURE.xml.yaml" which holds the PCREs
to avoid parsing DROID-SIGNATURE.xml again and again. This file is human
readable

The run produces a file "binaryfile.tags" which holds the tags used by
wxHexEditor when you open the file "binaryfile".

The run also produces a file "binaryfile.html" which can be viewed in
Webbrowser to get all matches as an overview.

$> perl ./pronom_statistics.pl DROID-SIGNATURE.xml

This prints some useful statistics about the signature file.

BUGS

* Some droid recipes results in PCREs which are greedy and therefore the running
time could be exponential with size of binary file.


COPYRIGHT AND LICENCE

Copyright (C) 2018 by Andreas Romeyke

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.24.1 or,
at your option, any later version of Perl 5 you may have available.


+ 12
- 0
dist.ini View File

@@ -0,0 +1,12 @@
name = File-FormatIdentification-Pronom
author = Andreas Romeyke <pause@andreas-romeyke.de>
license = Perl_5
copyright_holder = Andreas Romeyke
copyright_year = 2018
version = 0.002

[@Basic]
[NextRelease]
[TestRelease]
[ConfirmRelease]


Loading…
Cancel
Save