diff options
author | Eric Wong <e@80x24.org> | 2018-06-13 02:07:59 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-06-13 20:55:55 +0000 |
commit | 930ed478cc8fd29f39d4fff473a7ff40fb8251dc (patch) | |
tree | 17632fe8163ff2b93ac82da503a34d2deeae2b19 | |
parent | 599bf0b3c198ab207e3c7baacafa513fd0d6393d (diff) | |
download | public-inbox-930ed478cc8fd29f39d4fff473a7ff40fb8251dc.tar.gz |
Otherwise, things do not work from a tarball distribution. Reported-by: Leah Neukirchen <leah@vuxu.org> https://public-inbox.org/meta/871sdfzy80.fsf@gmail.com/
-rw-r--r-- | Makefile.PL | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.PL b/Makefile.PL index a47e17bc..027c3e63 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -3,9 +3,10 @@ # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> use strict; use ExtUtils::MakeMaker; -my @EXE_FILES = split("\n", `git ls-files 'script/*' 2>/dev/null`); -my $PM_FILES = `git ls-files lib '*.pm' 2>/dev/null`; -$PM_FILES =~ tr/\n/ /; +open my $m, '<', 'MANIFEST' or die "open(MANIFEST): $!\n"; +chomp(my @manifest = (<$m>)); +my @EXE_FILES = grep(m!^script/!, @manifest); +my $PM_FILES = join(' ', grep(m!^lib/.*\.pm$!, @manifest)); WriteMakefile( NAME => 'PublicInbox', |