Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ COPYING.buffer
COPYING.mpc
COPYING.pinttypes
COPYING.pstdint
cpanfile
include/aac.h
include/ape.h
include/asf.h
Expand All @@ -30,7 +31,7 @@ include/wavpack.h
lib/Audio/Scan.pm
Makefile.PL
MANIFEST This list of files
README
README.md
README.win32
Scan.xs
src/aac.c
Expand Down
17 changes: 14 additions & 3 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use strict;
use warnings;
use ExtUtils::MakeMaker 6.46 qw(WriteMakefile);
use ExtUtils::MakeMaker::CPANfile;

my (@CCFLAGS, @INC, @LIBS);

Expand All @@ -19,8 +19,6 @@ my $src_files = join(' ', glob 'src/*.c');
WriteMakefile(
NAME => 'Audio::Scan',
VERSION_FROM => 'lib/Audio/Scan.pm',
CONFIGURE_REQUIRES => { 'ExtUtils::MakeMaker' => 6.46 },
PREREQ_PM => { 'Test::Warn' => 0 },
ABSTRACT_FROM => 'lib/Audio/Scan.pm',
AUTHOR => 'Andy Grundman <andy@hybridized.org>',
CCFLAGS => "$Config::Config{ccflags} " . join(' ', @CCFLAGS),
Expand Down Expand Up @@ -62,4 +60,17 @@ WriteMakefile(
},
},
},
dist => {
PREOP => q(\
set -o errexit; \
pod2gfm --force $(VERSION_FROM) README.md; \
git status --porcelain README.md \
| ( \
if grep -F .; then \
echo 'Uncommitted generated files (listed above)'; \
exit 1; \
fi; \
); \
),
},
);
Loading