From 99522ae4666143dd28e6d471c65aa047314aa05b Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Mon, 7 Oct 2024 20:29:21 +0300 Subject: [PATCH] make twn run compile it first --- tools/twn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/twn b/tools/twn index 031a5a3..f8d5f21 100755 --- a/tools/twn +++ b/tools/twn @@ -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