Add doc/ directory and install its contents to /usr/share/doc/msva/.
authorW. Trevor King <wking@drexel.edu>
Sat, 28 May 2011 20:49:26 +0000 (16:49 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 28 May 2011 20:49:26 +0000 (16:49 -0400)
Build.PL
doc/README.msva.protocol [moved from msva.protocol.README with 100% similarity]
doc/README.schema [moved from README.schema with 100% similarity]
doc/gpgkeys_hkpms [moved from script/gpgkeys_hkpms with 100% similarity]
doc/openpgp2x509 [moved from openpgp2x509 with 100% similarity]

index 1010591e7af06334acce75759b2f04f41c058ec7..496fa3b3a63b5d0ff1c518111000b26e3de6f2be 100644 (file)
--- 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;
similarity index 100%
rename from README.schema
rename to doc/README.schema
similarity index 100%
rename from script/gpgkeys_hkpms
rename to doc/gpgkeys_hkpms
similarity index 100%
rename from openpgp2x509
rename to doc/openpgp2x509