diff options
author | midipix <writeonce@midipix.org> | 2021-04-24 15:47:26 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-24 16:04:40 +0000 |
commit | 427a69cd1cfd161d735fa55fb0ef9f252d65de53 (patch) | |
tree | b8b27bad9aa4815d36cc0bb282ef8f04f3f21f86 /configure | |
parent | 9d9f052a4b9a3ea91fbaa63f329a75b0632e907c (diff) | |
download | sltdl-427a69cd1cfd161d735fa55fb0ef9f252d65de53.tar.bz2 sltdl-427a69cd1cfd161d735fa55fb0ef9f252d65de53.tar.xz |
build system: configure: support project-specific cfginit.sh and cfgfini.sh.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -178,6 +178,11 @@ init_vars() MAKEMODE="$mb_makemode" fi + # project-specific initialization + if [ _$mb_use_custom_cfginit = _yes ]; then + . "$mb_project_dir/project/config/cfginit.sh" + fi + # package if [ -z "$mb_package" ]; then error_msg "$mb_script: incomplete information in $mb_config." @@ -830,6 +835,15 @@ config_host() } +config_fini() +{ + # project-specific post-configuration steps + if [ _$mb_use_custom_cfgfini = _yes ]; then + . "$mb_project_dir/project/config/cfgfini.sh" + fi +} + + config_status() { output_script_status ${mb_script} \ @@ -1240,6 +1254,7 @@ config_ccenv config_custom config_cfghost config_host +config_fini config_status |