summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2020-01-19 11:54:40 +0800
committerruki <[email protected]>2020-01-19 11:54:40 +0800
commit7fa954bf793944bdf42175a372277fcd386d62af (patch)
tree46a02c8e902ca429543f8874954d0abaec8e1e73 /scripts
parente07b57f40889e4ce5c95afccf81aee3e43d05b75 (diff)
update scrdenv.profile
Diffstat (limited to 'scripts')
-rw-r--r--scripts/srcenv.profile6
1 files changed, 5 insertions, 1 deletions
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