From 60716c6d7b04c53272c07c86677f07106242b9e8 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 8 Oct 2024 08:24:56 +0300 Subject: [PATCH] /tools/ -> /bin/, to have it in more common schema --- {tools => bin}/build.sh | 0 {tools => bin}/gen_api_header.sh | 0 {tools => bin}/gitea-lfs-pull.py | 0 {tools => bin}/package_data.py | 0 hooks | 2 +- tools/twn | 43 -------------------------------- 6 files changed, 1 insertion(+), 44 deletions(-) rename {tools => bin}/build.sh (100%) rename {tools => bin}/gen_api_header.sh (100%) rename {tools => bin}/gitea-lfs-pull.py (100%) rename {tools => bin}/package_data.py (100%) delete mode 100755 tools/twn diff --git a/tools/build.sh b/bin/build.sh similarity index 100% rename from tools/build.sh rename to bin/build.sh diff --git a/tools/gen_api_header.sh b/bin/gen_api_header.sh similarity index 100% rename from tools/gen_api_header.sh rename to bin/gen_api_header.sh diff --git a/tools/gitea-lfs-pull.py b/bin/gitea-lfs-pull.py similarity index 100% rename from tools/gitea-lfs-pull.py rename to bin/gitea-lfs-pull.py diff --git a/tools/package_data.py b/bin/package_data.py similarity index 100% rename from tools/package_data.py rename to bin/package_data.py diff --git a/hooks b/hooks index fa15256..7ccfb54 100755 --- a/hooks +++ b/hooks @@ -5,4 +5,4 @@ set +e # TODO: prevent double hooking -export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/tools/) +export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/bin/) diff --git a/tools/twn b/tools/twn deleted file mode 100755 index f8d5f21..0000000 --- a/tools/twn +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/env sh -# townengine tooling interface - -set +e - -exe="$(basename $PWD)" -toolpath="$(dirname -- "${BASH_SOURCE[0]}")" -export TWNROOT=$(realpath "$toolpath"/../) -export TWNBUILDDIR=$(realpath "$toolpath"/../.build) - -case "$1" in - build ) "$toolpath"/build.sh "${@:2}" - ;; - - run ) $0 build && ./$exe "${@:2}" - ;; - - gdb ) unset DEBUGINFOD_URLS - gdb -ex run --args "$(basename $PWD)" "${@:2}" - ;; - - apitrace ) case "$2" in - take ) export ASAN_OPTIONS=verify_asan_link_order=0 - export LD_PRELOAD="/usr/lib/libubsan.so /usr/lib/apitrace/wrappers/glxtrace.so $LD_PRELOAD" - ./$exe "${@:3}" - ;; - - show ) traces=( $exe.*.trace ) - trace=${traces[-1]} - if [ "$trace" = "$exe.*.trace" ]; then - trace="$exe.trace" - fi - qapitrace ${trace} - ;; - esac - ;; - - api-gen ) "$toolpath"/gen_api_header.sh - ;; - - * ) echo "Unknown command." - ;; -esac