aboutsummaryrefslogtreecommitdiff
path: root/Makefile.PL
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2018-01-23 10:49:37 +0000
committerSimon McVittie <smcv@debian.org>2018-01-29 22:35:29 +0000
commitb32480f0f975e80caa0b87a0001c9343e258f987 (patch)
tree546c06000174a23f71d4389bc0713ca1603ed364 /Makefile.PL
parentaa02f160ccdd844751cc4d637a71107d3d434309 (diff)
downloadikiwiki-b32480f0f975e80caa0b87a0001c9343e258f987.tar
ikiwiki-b32480f0f975e80caa0b87a0001c9343e258f987.tar.gz
build: Ensure that pm_to_blib finishes before rewriting shebang lines
Otherwise, rewriting shebang lines can race with pm_to_blib, potentially resulting in files being corrupt or empty.
Diffstat (limited to 'Makefile.PL')
-rwxr-xr-xMakefile.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 907ff30c9..6f1724697 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -61,7 +61,7 @@ extra_build: perl_shebangs $(outprogs) ikiwiki.setup docwiki sysconfdir
docwiki:
$(PERL) -Iblib/lib $(extramodules) $(tflag) ikiwiki.in --setup docwiki.setup --refresh
-perl_shebangs:
+perl_shebangs: pm_to_blib
ifneq "$(PERL)" "/usr/bin/perl"
set -e; \
for file in $(shebang_scripts); do \