mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-09 20:45:38 +00:00
a7628e204a
`env.sh` is copied verbatim from: https://github.com/status-im/nimbus-build-system#envsh
8 lines
307 B
Bash
Executable File
8 lines
307 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# We use ${BASH_SOURCE[0]} instead of $0 to allow sourcing this file
|
|
# and we fall back to a Zsh-specific special var to also support Zsh.
|
|
REL_PATH="$(dirname ${BASH_SOURCE[0]:-${(%):-%x}})"
|
|
ABS_PATH="$(cd ${REL_PATH}; pwd)"
|
|
source ${ABS_PATH}/vendor/nimbus-build-system/scripts/env.sh
|