summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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