summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-01-07 10:35:53 -0500
committerTavian Barnes <tavianator@tavianator.com>2025-01-07 10:35:53 -0500
commit73ce1ab5a886193e8fbbe2a3697b5009162b2531 (patch)
tree1c471fe865e3c7c7815fc8e78702f2f0908379c5
parent31dffd6441ba80ea998cedd10f9138198298e9fc (diff)
downloadbfs-73ce1ab5a886193e8fbbe2a3697b5009162b2531.tar.xz
configure: Reduce redundant info in CONFFLAGS for bfs --version
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 5156c91..5218e73 100755
--- a/configure
+++ b/configure
@@ -88,7 +88,7 @@ nproc() {
}
# Save the ./configure command line for bfs --version
-export CONFFLAGS="$*"
+export CONFFLAGS=""
# Default to `make`
MAKE="${MAKE-make}"
@@ -97,6 +97,13 @@ MAKE="${MAKE-make}"
for arg; do
shift
+ # Only add --options to CONFFLAGS, so we don't print FLAG=values twice in bfs --version
+ case "$arg" in
+ -*)
+ CONFFLAGS="${CONFFLAGS}${CONFFLAGS:+ }${arg}"
+ ;;
+ esac
+
# --[(enable|disable|with|without)-]$name[=$value]
value="${arg#*=}"
name="${arg%%=*}"