mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-11 23:43:22 +00:00
Fix saving the environment. Thanks to Mark Vels <Mark.Vels@fundem.net> for pointed it out!
This commit is contained in:
parent
0a0d8d6ba8
commit
7ee3cc8bc9
@ -552,14 +552,12 @@ CT_DoSaveState() {
|
|||||||
|
|
||||||
CT_DoLog DEBUG " Saving environment and aliases"
|
CT_DoLog DEBUG " Saving environment and aliases"
|
||||||
# We must omit shell functions
|
# We must omit shell functions
|
||||||
# 'isgrep' is here because I don't seem to
|
|
||||||
# be able to remove the functions names.
|
|
||||||
set |awk '
|
set |awk '
|
||||||
BEGIN { _p = 1; }
|
BEGIN { _p = 1; }
|
||||||
$0~/^[^ ] ()/ { _p = 0; }
|
$0~/^[^ ]+ \(\)/ { _p = 0; }
|
||||||
_p == 1
|
_p == 1
|
||||||
$0 == "}" { _p = 1; }
|
$0 == "}" { _p = 1; }
|
||||||
' |egrep -v '^[^ ]+ \(\)' >"${state_dir}/env.sh"
|
' >"${state_dir}/env.sh"
|
||||||
|
|
||||||
CT_DoLog DEBUG " Saving CT_CC_CORE_STATIC_PREFIX_DIR=\"${CT_CC_CORE_STATIC_PREFIX_DIR}\""
|
CT_DoLog DEBUG " Saving CT_CC_CORE_STATIC_PREFIX_DIR=\"${CT_CC_CORE_STATIC_PREFIX_DIR}\""
|
||||||
CT_Pushd "${CT_CC_CORE_STATIC_PREFIX_DIR}"
|
CT_Pushd "${CT_CC_CORE_STATIC_PREFIX_DIR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user