From bd8a345bed6b00f40547de44a1f76be2796f11be Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 27 Jul 2024 18:59:39 -0400 Subject: build/define-if.sh: Remove unneeded code --- build/define-if.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build') diff --git a/build/define-if.sh b/build/define-if.sh index 295ead8..204cfa4 100755 --- a/build/define-if.sh +++ b/build/define-if.sh @@ -7,9 +7,7 @@ set -eu -SLUG="${1#build/}" -SLUG="${SLUG%.c}" -MACRO="BFS_$(printf '%s' "$SLUG" | tr '/a-z-' '_A-Z_')" +MACRO=$(printf 'BFS_%s' "$1" | tr '/a-z-' '_A-Z_') shift if "$@"; then -- cgit v1.2.3