Skip to content

Commit

Permalink
Revert "cmake/std/atdm: Add trace logic to load-env.sh"
Browse files Browse the repository at this point in the history
This reverts commit 97ff9c6.
  • Loading branch information
e10harvey committed Dec 11, 2020
1 parent 4e4c769 commit e46fbab
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions cmake/std/atdm/load-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,6 @@
#
################################################################################

env &> load-env.pre
export_log=$1.export.log
module_log=$1.module.log
> $1.export.log
> $1.module.log

function export_trace() {
echo $@ >> $export_log
command export $@
}

alias export='export_trace'

eval orig_"$(declare -f module)"

function module() {
echo "====================================================================" >> $module_log
echo "module $@" >> $module_log
echo "====================================================================" >> $module_log
local tmp=$export_log
export_log=$module_log
orig_module $@
export_log=$tmp
}

# Assert this script is sourced, not run!
if [ "${BASH_SOURCE[0]}" == "${0}" ] ; then
echo "This script '${0}' is being called. Instead, it must be sourced!"
Expand Down Expand Up @@ -175,8 +150,5 @@ if [[ "${ATDM_CONFIG_INSTALL_PBP_RUNNER}" == "" ]] \
export ATDM_CONFIG_INSTALL_PBP_RUNNER="${ATDM_CONFIG_INSTALL_PBP_RUNNER_DEFAULT}"
fi

env &> load-env.post
unalias export
unset -f module
# NOTE: The ATDMDevEnvSettings.cmake module when processed will assert that
# many of these vars are correctly set.

0 comments on commit e46fbab

Please sign in to comment.