mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Merge pull request #96 from olgeni/pwd-symlink-fix
Use "pwd -P" to get the current physical path.
This commit is contained in:
commit
ef0fd4089f
4 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ unset POSIX_SHELL
|
||||||
## start_clean.boot file available in $ROOTDIR/release/VSN.
|
## start_clean.boot file available in $ROOTDIR/release/VSN.
|
||||||
|
|
||||||
# Determine the abspath of where this script is executing from.
|
# Determine the abspath of where this script is executing from.
|
||||||
ERTS_BIN_DIR=$(cd ${0%/*} && pwd)
|
ERTS_BIN_DIR=$(cd ${0%/*} && pwd -P)
|
||||||
|
|
||||||
# Now determine the root directory -- this script runs from erts-VSN/bin,
|
# Now determine the root directory -- this script runs from erts-VSN/bin,
|
||||||
# so we simply need to strip off two dirs from the end of the ERTS_BIN_DIR
|
# so we simply need to strip off two dirs from the end of the ERTS_BIN_DIR
|
||||||
|
|
|
@ -15,7 +15,7 @@ fi
|
||||||
# clear it so if we invoke other scripts, they run as ksh
|
# clear it so if we invoke other scripts, they run as ksh
|
||||||
unset POSIX_SHELL
|
unset POSIX_SHELL
|
||||||
|
|
||||||
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd)
|
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd -P)
|
||||||
|
|
||||||
CALLER_DIR=$PWD
|
CALLER_DIR=$PWD
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# -*- tab-width:4;indent-tabs-mode:nil -*-
|
# -*- tab-width:4;indent-tabs-mode:nil -*-
|
||||||
# ex: ts=4 sw=4 et
|
# ex: ts=4 sw=4 et
|
||||||
|
|
||||||
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd)
|
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd -P)
|
||||||
|
|
||||||
RUNNER_BASE_DIR=${RUNNER_SCRIPT_DIR%/*}
|
RUNNER_BASE_DIR=${RUNNER_SCRIPT_DIR%/*}
|
||||||
RUNNER_ETC_DIR=$RUNNER_BASE_DIR/etc
|
RUNNER_ETC_DIR=$RUNNER_BASE_DIR/etc
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
## file available in $ROOTDIR/release/VSN.
|
## file available in $ROOTDIR/release/VSN.
|
||||||
|
|
||||||
# Determine the abspath of where this script is executing from.
|
# Determine the abspath of where this script is executing from.
|
||||||
ERTS_BIN_DIR=$(cd ${0%/*} && pwd)
|
ERTS_BIN_DIR=$(cd ${0%/*} && pwd -P)
|
||||||
|
|
||||||
# Now determine the root directory -- this script runs from erts-VSN/bin,
|
# Now determine the root directory -- this script runs from erts-VSN/bin,
|
||||||
# so we simply need to strip off two dirs from the end of the ERTS_BIN_DIR
|
# so we simply need to strip off two dirs from the end of the ERTS_BIN_DIR
|
||||||
|
|
Loading…
Reference in a new issue