summaryrefslogtreecommitdiffstats
path: root/build/define-if.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-07-27 18:59:39 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-07-27 18:59:39 -0400
commitbd8a345bed6b00f40547de44a1f76be2796f11be (patch)
tree74e8e71fdd22b9335b8825e495bccae775ee8112 /build/define-if.sh
parent972dcc2973b160cdaad2c4ce0df3616a9f234759 (diff)
downloadbfs-bd8a345bed6b00f40547de44a1f76be2796f11be.tar.xz
build/define-if.sh: Remove unneeded code
Diffstat (limited to 'build/define-if.sh')
-rwxr-xr-xbuild/define-if.sh4
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