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 | a28efc44bb9be9ec555ce3cac87349c8e04d95e7 (patch) | |
tree | b2f3efcc38aadc10651c80126ab41a52598e0c04 | |
parent | f9914b26eb71763262ca8e9172934d2773011d0b (diff) | |
download | sbpython2-a28efc44bb9be9ec555ce3cac87349c8e04d95e7.tar.bz2 sbpython2-a28efc44bb9be9ec555ce3cac87349c8e04d95e7.tar.xz |
build system: configure: support project-specific cfginit.sh and cfgfini.sh.
-rwxr-xr-x | configure | 15 | ||||
-rw-r--r-- | sofort/config/config.vars | 2 |
2 files changed, 17 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 diff --git a/sofort/config/config.vars b/sofort/config/config.vars index 3420fa8..f3ea78e 100644 --- a/sofort/config/config.vars +++ b/sofort/config/config.vars @@ -134,6 +134,8 @@ disable_shared disable_static use_custom_cfgdefs +use_custom_cfginit +use_custom_cfgfini use_custom_usrdefs shared_lib_cmd |