diff --git a/bin/build.sh b/bin/build.sh index fb06c3b..f1d8631 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -1,5 +1,7 @@ #!/bin/env sh +set +e + # check whether ninja is around (you better start running) if [ -x "$(command -v ninja)" ]; then generator="-G Ninja" diff --git a/bin/gen_api_header.sh b/bin/gen_api_header.sh index d4e93eb..31de3bc 100755 --- a/bin/gen_api_header.sh +++ b/bin/gen_api_header.sh @@ -1,4 +1,6 @@ #!/bin/env sh # 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 diff --git a/hooks b/hooks index 7ccfb54..9b68538 100755 --- a/hooks +++ b/hooks @@ -6,3 +6,4 @@ set +e # TODO: prevent double hooking export PATH=$PATH:$(realpath $(dirname -- "${BASH_SOURCE[0]}")/bin/) +export TWNROOT=$(realpath $(dirname -- "${BASH_SOURCE[0]}"))