aboutsummaryrefslogtreecommitdiff
path: root/test/setup_env.sh
blob: 1dcd12d22880d97c6a0ab54e324154209de9d88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ -z "${BUILD_ROOT}" ] ; then
	printf "%s\n"  "You must export BUILD_ROOT before sourcing this file" >&2
	exit 1
fi

if [ -z "${SOURCE_ROOT}" ] ; then
	printf "%s\n" "You must export SOURCE_ROOT before sourcing this file" >&2
	exit 1
fi

if [ ! -f ${BUILD_ROOT}/sh/functions.sh ] ; then
	printf "%s\n" "functions.sh not yet created !?" >&2
	exit 1
elif ! . ${BUILD_ROOT}/sh/functions.sh; then
	printf "%s\n" "Sourcing functions.sh failed !?" >&2
	exit 1
fi

PATH="${BUILD_ROOT}"/src/einfo:${PATH}