From 4a278d3e39a685379711727eac7bfaa83679e0e4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 28 Aug 2024 15:29:46 -0400 Subject: build: Allow ./configure --version=X.Y.Z --- configure | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'configure') diff --git a/configure b/configure index ef6f58c..5156c91 100755 --- a/configure +++ b/configure @@ -7,6 +7,9 @@ set -eu +# Get the relative path to the source tree based on how the script was run +DIR=$(dirname -- "$0") + # Print the help message help() { cat <&2 ;; esac - ;; + ;; esac case "$arg" in @@ -165,7 +170,7 @@ for arg; do esac ;; - --prefix=*|--mandir=*) + --prefix=*|--mandir=*|--version=*) set -- "$@" "$NAME=$value" ;; @@ -188,9 +193,6 @@ for arg; do esac done -# Get the relative path to the source tree based on how the script was run -DIR=$(dirname -- "$0") - # Set up symbolic links for out-of-tree builds for f in Makefile build completions docs src tests; do test -e "$f" || ln -s "$DIR/$f" "$f" -- cgit v1.2.3