diff options
author | Matthew Horsfall <wolfsage@gmail.com> | 2014-06-23 08:31:47 -0400 |
---|---|---|
committer | Matthew Horsfall <wolfsage@gmail.com> | 2014-06-23 08:31:47 -0400 |
commit | c9e350647da2299099e45701f65fff206b6f3237 (patch) | |
tree | a8510b73cd574b5a229d938d8fd3824970322fda /Porting/makerel | |
parent | a420fd353d8d17e191cc6bc52683c079112c910c (diff) | |
download | perl-c9e350647da2299099e45701f65fff206b6f3237.tar.gz |
Update makerel to provide a helpful error message if chmod fails on @writables
Diffstat (limited to 'Porting/makerel')
-rwxr-xr-x | Porting/makerel | 14 |
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 $!; |