-
Notifications
You must be signed in to change notification settings - Fork 145
/
.env.libnabo
35 lines (31 loc) · 1.66 KB
/
.env.libnabo
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
# =================================================================================================
#
# Set project related environment variables. Those are available for convenience
# and are also required by 'norlab-shell-script-tools' library.
#
# Usage:
#
# Important! Source this file from 'libnabo' repository root
# $ cd <path/to/libnabo/>
# $ set -o allexport && source .env.libnabo && set +o allexport
#
# =================================================================================================
PROJECT_PROMPT_NAME='NABO'
# ....Programaticaly fetch source code information.................................................
PROJECT_GIT_REMOTE_URL="https://github.com/norlab-ulaval/libnabo"
PROJECT_GIT_NAME=$( basename "${PROJECT_GIT_REMOTE_URL}" .git )
PROJECT_PATH=$( git rev-parse --show-toplevel )
PROJECT_SRC_NAME="$( basename ${PROJECT_PATH} )"
# ....Set NABO related environment variable with their own prefix..................................
# Note: Those with "PROJECT_" prefix will get eventualy overiden in the case where N2ST is used
# as a library. Using generic testing logic require that environment variables with
# "PROJECT_" prefix be available.
NABO_PROMPT_NAME="${PROJECT_PROMPT_NAME}"
NABO_GIT_REMOTE_URL="${PROJECT_GIT_REMOTE_URL}"
NABO_GIT_NAME="${PROJECT_GIT_NAME}"
NABO_PATH="${PROJECT_PATH}"
NABO_SRC_NAME="${PROJECT_SRC_NAME}"
# ....Set dependencies path........................................................................
NABO_BUILD_SYSTEM_PATH="${PROJECT_PATH}/build_system"
N2ST_PATH="${PROJECT_PATH}/build_system/utilities/norlab-shell-script-tools"
NBS_PATH="${PROJECT_PATH}/build_system/utilities/norlab-build-system"