From 930ed478cc8fd29f39d4fff473a7ff40fb8251dc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Jun 2018 02:07:59 +0000 Subject: Makefile.PL: do not depend on git Otherwise, things do not work from a tarball distribution. Reported-by: Leah Neukirchen https://public-inbox.org/meta/871sdfzy80.fsf@gmail.com/ --- Makefile.PL | 7 ++++--- 1 file 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+ 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', -- cgit v1.2.3-24-ge0c7