commit b0eee9a4e6f21a84577d11675c8b68f10130e57e
parent a3516f23179a10bb1013336d178b23fdc2a16903
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Thu, 29 May 2025 12:54:05 +0000
Allow building arbitrary targets with build-commit script
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/util/build-commit b/util/build-commit
@@ -2,7 +2,7 @@
cd "$(dirname "$0")/.."
usage() {
- printf '%s\n' 'usage: build-commit <git-commit-hash>'
+ printf '%s\n' 'usage: build-commit <git-commit-hash> [targets]'
}
fatal_usage() {
@@ -22,7 +22,7 @@ case $#-$1 in
(1-*)
fatal_usage "invalid format of git commit hash"
;;
- (*)
+ (0)
fatal_usage "invalid number of arguments: $#"
;;
esac
@@ -42,4 +42,5 @@ if git submodule status --cached | grep '^[^ ]'; then
fatal_e111 "failed to get defined submodule states"
fi
-exec make -rs
+shift
+exec make -rs "$@"