diff options
author | Jesse Vincent <jesse@bestpractical.com> | 2009-07-28 14:35:08 -0400 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-07-28 21:22:52 +0100 |
commit | 9b05e874888db731870edce844ef9f3194eafed4 (patch) | |
tree | 8b38983d8ff6ca56b15194298a3d7430f77014ac /Porting/makerel | |
parent | 46743ef75efb28381be7cd8b99f7312ccf91904a (diff) | |
download | perl-9b05e874888db731870edce844ef9f3194eafed4.tar.gz |
makerel now tells you _which_ files differ from the MANIFEST and if possible gives you sha1 sums of the built distribution
Diffstat (limited to 'Porting/makerel')
-rw-r--r-- | Porting/makerel | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Porting/makerel b/Porting/makerel index 8c9e9c1a56..b23e1c7353 100644 --- a/Porting/makerel +++ b/Porting/makerel @@ -64,8 +64,15 @@ print "Cross-checking the MANIFEST...\n"; ($missfile, $missentry) = fullcheck(); @$missentry = grep {$_ !~ m!^\.git/! and $_ !~ m!(?:/|^)\.gitignore!} @$missentry; -warn "Can't make a release with MANIFEST files missing.\n" if @$missfile; -warn "Can't make a release with files not listed in MANIFEST.\n" if @$missentry; +if (@$missfile ) { + warn "Can't make a release with MANIFEST files missing:\n"; + warn "\t".$_."\n" for (@$missfile); +} +if (@$missentry ) { + warn "Can't make a release with files not listed in MANIFEST\n"; + warn "\t".$_."\n" for (@$missentry); + +} if ("@$missentry" =~ m/\.orig\b/) { # Handy listing of find command and .orig files from patching work. # I tend to run 'xargs rm' and copy and paste the file list. @@ -200,4 +207,11 @@ if ($opts{b}) { } print "\n"; -system("ls -ld $perl*"); + +if (`which sha1`) { + system("sha1 $perl*.tar.*"); +} elsif (`which shasum`) { + system("shasum $perl*.tar.*"); +} else { + system("ls -ld $perl*"); +} |