diff options
author | Simon Rettberg | 2021-07-09 11:27:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-07-09 11:27:57 +0200 |
commit | 3c89a46d3251c63185af32734f151813fb482d8c (patch) | |
tree | 8e091e35291e0818a58a72025bbc8ef2e20b0297 /mltk | |
parent | Remove module size calculations. Never worked properly. (diff) | |
download | mltk-3c89a46d3251c63185af32734f151813fb482d8c.tar.gz mltk-3c89a46d3251c63185af32734f151813fb482d8c.tar.xz mltk-3c89a46d3251c63185af32734f151813fb482d8c.zip |
Require explicit confgig for distcc/ccache, print local config
Diffstat (limited to 'mltk')
-rwxr-xr-x | mltk | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -37,6 +37,15 @@ qnd_exit() { exit 1 } +# Support sourcing a "config" where you can set up stuff like 'export http_proxy=...' +if [ -e "$ROOT_DIR/config" ]; then + data1="$( mktemp )" + data2="$( mktemp )" + declare -p > "$data1" + . "$ROOT_DIR/config" + declare -p > "$data2" +fi + # source all helper unit files that are found under helper/*.inc # or core/includes/*.inc # a helper unit may contain a function called "__init" which will be called @@ -59,9 +68,6 @@ init_helpers () { done } -# Support sourcing a "config" where you can set up stuff like 'export http_proxy=...' -[ -e "$ROOT_DIR/config" ] && . "$ROOT_DIR/config" - banner () { echo -e "\033[38;5;202m\t __ __ __ " echo -e "\033[38;5;202m\t.--------.| | | |_| |--." @@ -246,6 +252,8 @@ run() { [[ $REMOTE_EXPORT == 1 ]] && export_builds } +MLTK_DISTCC= +MLTK_CCACHE= REMOTE_LOCAL_INSTALL= REMOTE_DEBUG="0" REMOTE_CLEAN="0" @@ -259,6 +267,15 @@ initial_checks read_params $@ init_helpers +if [ -n "$data1" ] && [ -n "$data2" ]; then + pinfo "Applied local config:" + while read -r line; do + pinfo "$line" + done < <( diff -U0 "$data1" "$data2" | grep -v -e '^+++ ' -e '^--- ' -e '^@@ ' -e ' BASH_' -e ' _="' ) + rm -f -- "$data1" "$data2" + unset data1 data2 +fi + check_devtools run |