-
Notifications
You must be signed in to change notification settings - Fork 10
/
env.sh
executable file
·39 lines (30 loc) · 1.01 KB
/
env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
export BASEDIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
if [ -z "$PROJECT" ]; then
export PROJECT="GenPi64OpenRC"
fi
if [ -z "$PROJECT_DIR" ]; then
export PROJECT_DIR="${BASEDIR}/build/${PROJECT}"
fi
if [ -z "$BINPKGS_DIR" ] ; then
export BINPKGS_DIR="${PROJECT_DIR}/packages"
fi
if [ -z "$DISTFILES_DIR" ] ; then
export DISTFILES_DIR="${PROJECT_DIR}/distfiles"
fi
if [ -z "$CCACHE_DIR" ]; then
export CCACHE_DIR="${PROJECT_DIR}/ccache"
fi
if [ -z "$BINARY_ASSETS" ]; then
export BINARY_ASSETS="${PROJECT_DIR}/build-binary-assets"
fi
if [ -z "$OVERLAYS_CACHE_DIR" ]; then
export OVERLAYS_CACHE_DIR="${PROJECT_DIR}/overlays-cache"
fi
#This list of variables must also be included in the copyenv directive of parsers/include
export CONFIG_DIR="${BASEDIR}/config"
export CHROOT_DIR="${PROJECT_DIR}/chroot"
export PARSERS="${BASEDIR}/parsers"
export SCRIPTS="${BASEDIR}/scripts"
export CALLBACKS="${BASEDIR}/callbacks"
. "${SCRIPTS}/binfmt.sh"