Introduce patchShebangsPhase ran in preConfigurePhases
(cherry picked from commit 91c7e8747af1fdc2a70cd98594ccbb12a5c6902d) Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
|
||||
fixupOutputHooks+=('if [ -z "$dontPatchShebangs" ]; then patchShebangs "$prefix"; fi')
|
||||
|
||||
preConfigurePhases+=" patchShebangsPhase"
|
||||
|
||||
patchShebangsPhase() {
|
||||
if [ -z "$dontPatchSourceShebangs" ]; then patchShebangs "."; fi
|
||||
}
|
||||
|
||||
patchShebangs() {
|
||||
local dir="$1"
|
||||
header "patching script interpreter paths in $dir"
|
||||
|
||||
Reference in New Issue
Block a user