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.master
parent
aa02f160cc
commit
b32480f0f9
|
@ -7,6 +7,7 @@ ikiwiki (3.20180106) UNRELEASED; urgency=medium
|
|||
* build: `set -e` before each `for` loop, so that errors are reliably
|
||||
trapped
|
||||
* build: Use if/then instead of `||` so that the `-e` flag works
|
||||
* build: Ensure that pm_to_blib finishes before rewriting shebang lines
|
||||
|
||||
-- Simon McVittie <smcv@debian.org> Mon, 08 Jan 2018 10:51:10 +0000
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue