mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
701c8dae2d
* fix shellcheck warnings; add some ci ignore test entries * fix(make): Redirect build stderr to a file #4112 * enh(dev): add vscode run script and launch items for tests
37 lines
725 B
Bash
37 lines
725 B
Bash
# usage:
|
|
# . env.bash
|
|
# or
|
|
# source env.bash
|
|
|
|
self="${BASH_SOURCE[0]}"
|
|
|
|
if [ "$self" == "$0" ] ; then
|
|
echo "This file must be sourced from bash, not run."
|
|
echo "Usage: . $0"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -d "$self" ] ; then
|
|
basedir="$(cd "$self" || exit; pwd -P)"
|
|
else
|
|
basedir="$(cd "$(dirname "$self")" || exit; pwd -P)"
|
|
fi
|
|
|
|
OSNAME="${OSNAME:=$(uname -s)}"
|
|
export OSNAME
|
|
OSARCH="${OSARCH:=$(uname -m)}"
|
|
export OSARCH
|
|
POCO_BASE="$basedir"
|
|
export POCO_BASE
|
|
PATH=$POCO_BASE/lib/$OSNAME/$OSARCH:$POCO_BASE:$PATH
|
|
export PATH
|
|
|
|
# uncomment for sanitizer builds
|
|
#LSAN_OPTIONS=verbosity=1:log_threads=1
|
|
#export LSAN_OPTIONS
|
|
|
|
echo "\$OSNAME = $OSNAME"
|
|
echo "\$OSARCH = $OSARCH"
|
|
echo "\$POCO_BASE = $POCO_BASE"
|
|
echo "\$PATH = $PATH"
|