mirror of
https://github.com/boostorg/build.git
synced 2026-02-02 20:52:13 +00:00
Fixes for POSIX sh.
This commit is contained in:
@@ -18,10 +18,11 @@ B2_GUESS_TOOLSET=${FALSE}
|
||||
|
||||
# We need to calculate and set SCRIPT_PATH and SCRIPT_DIR to reference this
|
||||
# script so that we can refer to file relative to it.
|
||||
if test -v BASH_SOURCE ; then
|
||||
SCRIPT_PATH=""
|
||||
if test "${BASH_SOURCE}" ; then
|
||||
SCRIPT_PATH=${BASH_SOURCE[0]}
|
||||
fi
|
||||
if test "${SCRIPT_PATH}" == "" ; then
|
||||
if test "${SCRIPT_PATH}" = "" ; then
|
||||
SCRIPT_PATH=$0
|
||||
fi
|
||||
SCRIPT_DIR="$( cd "$( dirname "${SCRIPT_PATH}" )" && pwd )"
|
||||
|
||||
Reference in New Issue
Block a user