daliaessam daliaessam - 3 months ago 13
Perl Question

How can I make ExtUtils::Manifest include empty directories?

I am trying to build a Perl module for distribution. The directory structure looks like this:

demo
demo/files
demo/examples/example1.pl
demo/scripts
lib


I used this command to generate the MANIFEST file:

perl -e "use ExtUtils::Manifest qw(mkmanifest); mkmanifest();"


The file is created but all of the empty folders are ignored, so
demo/files
and
demo/scripts
are not in the MANIFEST.

How can I tell
ExtUtils::Manifest
to include empty folders?

Answer

Create a zero byte file called .exists in the otherwise empty directories.