THRIFT-4471: add Makefile.PL to Perl CPAN module build script
Client: perl
diff --git a/lib/perl/build-cpan-dist.sh b/lib/perl/build-cpan-dist.sh
index 7c7935f..ae22e7e 100755
--- a/lib/perl/build-cpan-dist.sh
+++ b/lib/perl/build-cpan-dist.sh
@@ -38,14 +38,15 @@
tar xzf $DISTFILE
rm $DISTFILE
DISTDIR=$(ls -d Thrift*)
-# cpan doesn't like "Thrift-v0.11.0 as a directory name
-# needs to be Thrift-0.11.0
+# cpan doesn't like "Thrift-v0.nn.0 as a directory name
+# needs to be Thrift-0.nn.0
NEWDIR=${DISTDIR/t-v/t-}
if [[ "$DISTDIR" != "$NEWDIR" ]]; then
mv $DISTDIR $NEWDIR
DISTDIR="$NEWDIR"
fi
cd $DISTDIR
+cp -p ../Makefile.PL .
perl ../tools/FixupDist.pl
cd ..
tar cvzf $DISTFILE $DISTDIR