diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-07-27 18:59:39 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-07-27 18:59:39 -0400 |
commit | bd8a345bed6b00f40547de44a1f76be2796f11be (patch) | |
tree | 74e8e71fdd22b9335b8825e495bccae775ee8112 | |
parent | 972dcc2973b160cdaad2c4ce0df3616a9f234759 (diff) | |
download | bfs-bd8a345bed6b00f40547de44a1f76be2796f11be.tar.xz |
build/define-if.sh: Remove unneeded code
-rwxr-xr-x | build/define-if.sh | 4 |
1 files changed, 1 insertions, 3 deletions
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 |