tweaks to tooling
This commit is contained in:
parent
62d738cbbe
commit
6d5732cc2b
@ -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"
|
||||||
|
@ -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
1
hooks
@ -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]}"))
|
||||||
|
Loading…
Reference in New Issue
Block a user