summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-24 15:47:26 +0000
committermidipix <writeonce@midipix.org>2021-04-24 16:04:40 +0000
commitd4fa844544364c6c73fbf5d506d2ae214bf1b0b9 (patch)
treeef304daadb05972eb101df9461b3210ee6f4f007 /configure
parent8089943e70794a8e0bfb23e93af58dc8e6d419c4 (diff)
downloadpemagine-d4fa844544364c6c73fbf5d506d2ae214bf1b0b9.tar.bz2
pemagine-d4fa844544364c6c73fbf5d506d2ae214bf1b0b9.tar.xz
build system: configure: support project-specific cfginit.sh and cfgfini.sh.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure b/configure
index 8ec7015..283b7c8 100755
--- a/configure
+++ b/configure
@@ -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