/tools/ -> /bin/, to have it in more common schema
This commit is contained in:
parent
133021b91e
commit
60716c6d7b
2
hooks
2
hooks
@ -5,4 +5,4 @@
|
|||||||
set +e
|
set +e
|
||||||
|
|
||||||
# TODO: prevent double hooking
|
# TODO: prevent double hooking
|
||||||
export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/tools/)
|
export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/bin/)
|
||||||
|
43
tools/twn
43
tools/twn
@ -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
|
|
Loading…
Reference in New Issue
Block a user