tweaks to tooling

This commit is contained in:
veclavtalica 2025-01-03 11:55:39 +03:00
parent 62d738cbbe
commit 6d5732cc2b
3 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/env sh #!/bin/env sh
set +e
# check whether ninja is around (you better start running) # check whether ninja is around (you better start running)
if [ -x "$(command -v ninja)" ]; then if [ -x "$(command -v ninja)" ]; then
generator="-G Ninja" generator="-G Ninja"

View File

@ -1,4 +1,6 @@
#!/bin/env sh #!/bin/env sh
# single header api generator with clang # single header api generator with clang
set +e
clang -I./ -P -E -nostdinc -nobuiltininc -DTWN_NOT_C $TWNROOT/include/twn_game_api.h 2> /dev/null | clang-format clang -I./ -P -E -nostdinc -nobuiltininc -DTWN_NOT_C $TWNROOT/include/twn_game_api.h 2> /dev/null | clang-format

1
hooks
View File

@ -6,3 +6,4 @@ set +e
# TODO: prevent double hooking # TODO: prevent double hooking
export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/bin/) export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/bin/)
export TWNROOT=$(realpath $(dirname -- "${BASH_SOURCE[0]}"))