summaryrefslogtreecommitdiff
path: root/Porting/makerel
diff options
context:
space:
mode:
authorMatthew Horsfall <wolfsage@gmail.com>2014-06-23 08:31:47 -0400
committerMatthew Horsfall <wolfsage@gmail.com>2014-06-23 08:31:47 -0400
commitc9e350647da2299099e45701f65fff206b6f3237 (patch)
treea8510b73cd574b5a229d938d8fd3824970322fda /Porting/makerel
parenta420fd353d8d17e191cc6bc52683c079112c910c (diff)
downloadperl-c9e350647da2299099e45701f65fff206b6f3237.tar.gz
Update makerel to provide a helpful error message if chmod fails on @writables
Diffstat (limited to 'Porting/makerel')
-rwxr-xr-xPorting/makerel14
1 files changed, 12 insertions, 2 deletions
diff --git a/Porting/makerel b/Porting/makerel
index 8739c29773..f83abbb41d 100755
--- a/Porting/makerel
+++ b/Porting/makerel
@@ -161,8 +161,18 @@ my @writables = qw(
win32/config_H.vc
uconfig.h
);
-system("chmod u+w @writables") == 0
- or die "system: $!";
+
+my $out = `chmod u+w @writables 2>&1`;
+if ($? != 0) {
+ warn $out;
+ if ($out =~ /no such file/i) {
+ warn "Check that the files above still exist in the Perl core.\n";
+ warn "If not, remove them from \@writables in Porting/makerel\n";
+ }
+ exit 1;
+} else {
+ warn $out if $out;
+}
chdir ".." or die $!;