make twn run compile it first
This commit is contained in:
parent
b0e6dd78b2
commit
99522ae466
@ -3,17 +3,16 @@
|
|||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
exe="$(basename $PWD)"
|
||||||
toolpath="$(dirname -- "${BASH_SOURCE[0]}")"
|
toolpath="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||||
export TWNROOT=$(realpath "$toolpath"/../)
|
export TWNROOT=$(realpath "$toolpath"/../)
|
||||||
export TWNBUILDDIR=$(realpath "$toolpath"/../.build)
|
export TWNBUILDDIR=$(realpath "$toolpath"/../.build)
|
||||||
|
|
||||||
exe="$(basename $PWD)"
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
build ) "$toolpath"/build.sh "${@:2}"
|
build ) "$toolpath"/build.sh "${@:2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
run ) ./$exe "${@:2}"
|
run ) $0 build && ./$exe "${@:2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gdb ) unset DEBUGINFOD_URLS
|
gdb ) unset DEBUGINFOD_URLS
|
||||||
|
Loading…
Reference in New Issue
Block a user