-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathenvironment.inc
More file actions
executable file
·34 lines (25 loc) · 852 Bytes
/
environment.inc
File metadata and controls
executable file
·34 lines (25 loc) · 852 Bytes
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
#!/usr/bin/env bash
# Bash3 Boilerplate. Copyright (c) 2014, kvz.io
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
# Add common application folder to the path
PATH=/opt/homebrew/bin:$PATH
# Set current file directory for relative access
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VMS_SCRIPT_DIR=${__dir}/VMs
IMAGES_SCRIPT_DIR=${__dir}/images
#Get the absolute build dir, so scripts can move around and change the working directory
BUILD_DIR=${BUILD_DIR:=`pwd`/_build}
BUILD_VMS_DIR=$BUILD_DIR/VMs
BUILD_REPOS_DIR=$BUILD_DIR/repos
BUILD_IMAGES_DIR=$BUILD_DIR/images
BUILD_RESULTS_DIR=$BUILD_DIR/results
DATE=${DATE:=$(date +%Y-%m-%d)}
ARCH=$(uname -m)
OS=$(uname -s)
echo "Script root directory: ${__dir}"
echo "VMS Script root directory: $VMS_SCRIPT_DIR"
echo "Build directory: $BUILD_DIR"
echo "Date to build:" $DATE