From: W. Trevor King Date: Sat, 28 May 2011 20:49:26 +0000 (-0400) Subject: Add doc/ directory and install its contents to /usr/share/doc/msva/. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88c800da2410931a90fa80f236976a1d8e8b2a98;p=monkeysphere-validation-agent.git Add doc/ directory and install its contents to /usr/share/doc/msva/. --- diff --git a/Build.PL b/Build.PL index 1010591..496fa3b 100644 --- a/Build.PL +++ b/Build.PL @@ -2,6 +2,19 @@ use strict; use warnings; use diagnostics; use Module::Build; +use File::Find; +use Data::Dumper; + +my %doc_files = ( + 'Changelog' => 'doc/Changelog', + ); +sub add_doc { + if (-f $_) { + $doc_files{$File::Find::name} = $File::Find::name; + } +} +find(\&add_doc, 'doc'); +#print Dumper(\%doc_files); my $cm = Module::Build->new ( @@ -22,5 +35,8 @@ my $cm = Module::Build->new dist_version_from => 'lib/Crypt/Monkeysphere/MSVA.pm', dist_abstract => 'Monkeysphere public key validation daemon', script_files => 'script/', + doc_files => \%doc_files, + install_path => { 'doc' => '/usr/share/doc/msva' }, ); +$cm->add_build_element('doc'); $cm->create_build_script; diff --git a/msva.protocol.README b/doc/README.msva.protocol similarity index 100% rename from msva.protocol.README rename to doc/README.msva.protocol diff --git a/README.schema b/doc/README.schema similarity index 100% rename from README.schema rename to doc/README.schema diff --git a/script/gpgkeys_hkpms b/doc/gpgkeys_hkpms similarity index 100% rename from script/gpgkeys_hkpms rename to doc/gpgkeys_hkpms diff --git a/openpgp2x509 b/doc/openpgp2x509 similarity index 100% rename from openpgp2x509 rename to doc/openpgp2x509