aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-07-21 22:11:01 +0800
committerJia Tan <jiat0218@gmail.com>2023-07-22 18:13:43 +0800
commit556536a3525df9e5ed78b8c7057991cfa9edfac8 (patch)
tree09db2c00632a1ee6d322e36172b0701b70671aa7
parentTests: Skip .lz files in test_files.sh if not configured. (diff)
downloadxz-556536a3525df9e5ed78b8c7057991cfa9edfac8.tar.xz
CI: Add argument to ci_build.sh to pass flags to autogen.sh.
Diffstat (limited to '')
-rwxr-xr-xbuild-aux/ci_build.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/build-aux/ci_build.sh b/build-aux/ci_build.sh
index 201c1dd5..6ab4777f 100755
--- a/build-aux/ci_build.sh
+++ b/build-aux/ci_build.sh
@@ -17,6 +17,7 @@
set -e
USAGE="Usage: $0
+ -a [autogen flags]
-b [autotools|cmake]
-c [crc32|crc64|sha256]
-d [encoders|decoders|bcj|delta|threads|shared|nls|small|ifunc|clmul]
@@ -30,6 +31,7 @@ USAGE="Usage: $0
ABS_DIR=$(cd -- "$(dirname -- "$0")" && pwd)
# Default CLI option values
+AUTOGEN_FLAGS=""
BUILD_SYSTEM="autotools"
CHECK_TYPE="crc32,crc64,sha256"
BCJ="y"
@@ -52,13 +54,16 @@ ARTIFACTS_DIR_NAME="output"
# Parse arguments #
###################
-while getopts b:c:d:l:n:s:p:f:h opt; do
+while getopts a:b:c:d:l:n:s:p:f:h opt; do
# b option can have either value "autotools" OR "cmake"
case ${opt} in
h)
echo "$USAGE"
exit 0
;;
+ a)
+ AUTOGEN_FLAGS="$OPTARG"
+ ;;
b)
case "$OPTARG" in
autotools) ;;
@@ -187,7 +192,7 @@ then
# Run autogen.sh script if not already run
if [ ! -f configure ]
then
- "./autogen.sh"
+ ./autogen.sh "$AUTOGEN_FLAGS"
fi
cd "$DEST_DIR"