fd9366c85c
This introduce config_host.mk and config_build.mk generated from config_host.mk.in The intent is for that file to be both sourcable in a shell and includable in a gnu Makefile. Eventually all the environment set-up will be in config_host.mk.in and so there won't be a need to source anything in shell before make.
31 lines
671 B
Bash
Executable file
31 lines
671 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
bin_dir=$(dirname $0)
|
|
action=$(basename $0)
|
|
|
|
if [ "$action" = "lo_proxy_start" ] ; then
|
|
action=$1
|
|
shift
|
|
fi
|
|
|
|
if [ -z "$SRC_ROOT" ] ; then
|
|
SRC_ROOT=$($bin_dir/lo_find_src_root) || exit 1
|
|
fi
|
|
if [ -z "$SOLARINC" ] ; then
|
|
if [ -e "$SRC_ROOT/config_host.mk" ] ; then
|
|
. "$SRC_ROOT/config_host.mk"
|
|
fi
|
|
if [ -e "$SRC_ROOT/Env.Host.sh" ] ; then
|
|
. "$SRC_ROOT/Env.Host.sh"
|
|
fi
|
|
fi
|
|
|
|
if [ -e $SRC_ROOT/solenv/bin/$action.pl ] ; then
|
|
$SRC_ROOT/solenv/bin/$action.pl "$@"
|
|
elif [ -e $SRC_ROOT/solenv/bin/$action.sh ] ; then
|
|
$SRC_ROOT/solenv/bin/$action.sh "$@"
|
|
else
|
|
echo "$action.[pl|sh] not found" 2>&1
|
|
exit 1
|
|
fi
|
|
|