From 7fa954bf793944bdf42175a372277fcd386d62af Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Jan 2020 11:54:40 +0800 Subject: update scrdenv.profile --- scripts/srcenv.profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/srcenv.profile') diff --git a/scripts/srcenv.profile b/scripts/srcenv.profile index 46cb17234..1fe3af35b 100644 --- a/scripts/srcenv.profile +++ b/scripts/srcenv.profile @@ -1,6 +1,10 @@ # cd projectdir export XMAKE_PROGRAM_DIR=`pwd`/xmake -alias xmake=`pwd`/core/src/demo/demo.b +if [ -f ``pwd`/core/build/xmake` ]; then + alias xmake=`pwd`/core/build/xmake +else + alias xmake=`pwd`/core/src/demo/demo.b +fi xmake --version xmake l xmake.programdir xmake l xmake.programfile -- cgit v1.3.1