make twn run compile it first

This commit is contained in:
veclav talica 2024-10-07 20:29:21 +03:00
parent b0e6dd78b2
commit 99522ae466

View File

@ -3,17 +3,16 @@
set +e
exe="$(basename $PWD)"
toolpath="$(dirname -- "${BASH_SOURCE[0]}")"
export TWNROOT=$(realpath "$toolpath"/../)
export TWNBUILDDIR=$(realpath "$toolpath"/../.build)
exe="$(basename $PWD)"
case "$1" in
build ) "$toolpath"/build.sh "${@:2}"
;;
run ) ./$exe "${@:2}"
run ) $0 build && ./$exe "${@:2}"
;;
gdb ) unset DEBUGINFOD_URLS