aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-01-12 22:44:18 +0800
committerJia Tan <jiat0218@gmail.com>2023-01-12 22:44:18 +0800
commit77d1ebcc99ddd82a300d1838f608150221931dcd (patch)
tree8d99688dfe48d8319bab293ee486da4fd0cd3527 /build-aux
parentBuild: Omit -Wmissing-noreturn from the default warnings. (diff)
downloadxz-77d1ebcc99ddd82a300d1838f608150221931dcd.tar.xz
CI: Improve Usage readability and add -h option.
Diffstat (limited to '')
-rwxr-xr-xbuild-aux/ci_build.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/build-aux/ci_build.sh b/build-aux/ci_build.sh
index 6e264769..0283683f 100755
--- a/build-aux/ci_build.sh
+++ b/build-aux/ci_build.sh
@@ -16,7 +16,14 @@
set -e
-USAGE="Usage: $0 -b [autotools|cmake] -c [crc32|crc64|sha256] -d [encoders|decoders|bcj|delta|threads] -l [destdir] -s [srcdir] -p [all|build|test] -f[-m32]"
+USAGE="Usage: $0
+ -b [autotools|cmake]
+ -c [crc32|crc64|sha256]
+ -d [encoders|decoders|bcj|delta|threads]
+ -l [destdir]
+ -s [srcdir]
+ -p [all|build|test]
+ -f [CFLAGS]"
# Absolute path of script directory
ABS_DIR=$(cd -- "$(dirname -- "$0")" && pwd)
@@ -34,9 +41,13 @@ DEST_DIR="$SRC_DIR/../xz_build"
PHASE="all"
# Parse arguments
-while getopts b:c:d:l:s:p:f: opt; do
+while getopts b:c:d:l:s:p:f:h opt; do
# b option can have either value "autotools" OR "cmake"
case ${opt} in
+ h)
+ echo "$USAGE"
+ exit 0
+ ;;
b)
case "$OPTARG" in
autotools) ;;