This is an automated email from the ASF dual-hosted git repository. gnutt pushed a commit to branch pr589 in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 895e456a0428200214e78a2be76f03966b605b40 Author: Xiang Xiao <[email protected]> AuthorDate: Thu Mar 19 10:41:36 2020 +0800 tools: Make sethost.sh can be invoke from any directory Signed-off-by: Xiang Xiao <[email protected]> Change-Id: I15234df8591a0f22837c72d4e9203da5f05d0f74 --- tools/configure.sh | 4 +--- tools/sethost.sh | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/configure.sh b/tools/configure.sh index a90517d..6455fc4 100755 --- a/tools/configure.sh +++ b/tools/configure.sh @@ -282,6 +282,4 @@ fi # The saved defconfig files are all in compressed format and must be # reconstitued before they can be used. -cd ${TOPDIR} || { echo "Failed to cd to ${TOPDIR}"; exit 10; } - -./tools/sethost.sh $debug $host +${TOPDIR}/tools/sethost.sh $debug $host diff --git a/tools/sethost.sh b/tools/sethost.sh index 5a75885..8ebac02 100755 --- a/tools/sethost.sh +++ b/tools/sethost.sh @@ -125,6 +125,9 @@ if [ ! -z "$1" ]; then showusage fi +WD=`test -d ${0%/*} && cd ${0%/*}; pwd` +cd $WD + if [ -x sethost.sh ]; then nuttx=$PWD/.. else
