parent
768fd97393
commit
f5239598d5
1 changed files with 5 additions and 1 deletions
|
@ -39,14 +39,16 @@ ch_wrksrc() {
|
||||||
run_step() {
|
run_step() {
|
||||||
local step_name="$1" optional_step="$2" skip_post_hook="$3"
|
local step_name="$1" optional_step="$2" skip_post_hook="$3"
|
||||||
|
|
||||||
|
ch_wrksrc
|
||||||
run_pkg_hooks "pre-$step_name"
|
run_pkg_hooks "pre-$step_name"
|
||||||
|
|
||||||
ch_wrksrc
|
|
||||||
# Run pre_* Phase
|
# Run pre_* Phase
|
||||||
if declare -f "pre_$step_name" >/dev/null; then
|
if declare -f "pre_$step_name" >/dev/null; then
|
||||||
|
ch_wrksrc
|
||||||
run_func "pre_$step_name"
|
run_func "pre_$step_name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ch_wrksrc
|
||||||
# Run do_* Phase
|
# Run do_* Phase
|
||||||
if declare -f "do_$step_name" >/dev/null; then
|
if declare -f "do_$step_name" >/dev/null; then
|
||||||
run_func "do_$step_name"
|
run_func "do_$step_name"
|
||||||
|
@ -67,10 +69,12 @@ run_step() {
|
||||||
|
|
||||||
# Run post_* Phase
|
# Run post_* Phase
|
||||||
if declare -f "post_$step_name" >/dev/null; then
|
if declare -f "post_$step_name" >/dev/null; then
|
||||||
|
ch_wrksrc
|
||||||
run_func "post_$step_name"
|
run_func "post_$step_name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ "$skip_post_hook" ]; then
|
if ! [ "$skip_post_hook" ]; then
|
||||||
|
ch_wrksrc
|
||||||
run_pkg_hooks "post-$step_name"
|
run_pkg_hooks "post-$step_name"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue