add env.sh shim to project root (#34)

`env.sh` is copied verbatim from:
https://github.com/status-im/nimbus-build-system#envsh
This commit is contained in:
Michael Bradley 2021-12-20 13:12:18 -06:00 committed by GitHub
parent 0f7f5237ad
commit a7628e204a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

7
env.sh Executable file
View File

@ -0,0 +1,7 @@
#!/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