Skip to content

Commit

Permalink
beesh: added mee_*_pre and mee_*_post calls for every bee_run action..
Browse files Browse the repository at this point in the history
now you cann add mee_install_post() actions to your bee file which will
be executed after bee_install has been run..

so there is no need to add bee_install calls to mee_install functions just
to create/move/unlink some links/files post installation or pre patch..
  • Loading branch information
mariux committed Oct 31, 2011
1 parent 11415a9 commit e4ad654
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,12 @@ function bee_run() {
action=${1}
shift

if is_func "mee_${action}_pre" ; then
log_enter "mee_${action}_pre()"
mee_${action}_pre "${@}"
log_leave "mee_${action}_pre()"
fi

if is_func "mee_${action}" ; then
log_enter "mee_${action}()"
mee_${action} "${@}"
Expand All @@ -504,6 +510,12 @@ function bee_run() {
print_error "don't know how to run '${action}'"
exit
fi

if is_func "mee_${action}_post" ; then
log_enter "mee_${action}_post()"
mee_${action}_post "${@}"
log_leave "mee_${action}_post()"
fi
}

config_init_colors
Expand Down

0 comments on commit e4ad654

Please sign in to comment.