File: setup_env.sh

package info (click to toggle)
openrc 0.63-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,412 kB
  • sloc: ansic: 16,255; sh: 2,225; perl: 28; makefile: 26
file content (21 lines) | stat: -rwxr-xr-x 511 bytes parent folder | download | duplicates (3)
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}