[packages/rpm-build-tools/merge-pld-builder-client: 13/2675] - support command
glen
glen at pld-linux.org
Mon Dec 19 21:50:02 CET 2016
commit 76ab50e33f26e22110e0a21310b82e73a5a137a4
Author: Michal Moskal <michal at moskal.me>
Date: Tue Sep 2 21:12:14 2003 +0000
- support command
Changed files:
client/make-request.sh -> 1.13
make-request.sh | 35 ++++++++++++++++++++++++++++++++---
1 file changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/make-request.sh b/make-request.sh
index 2e7c9e8..883f44f 100644
--- a/make-request.sh
+++ b/make-request.sh
@@ -39,7 +39,7 @@ while [ $# -gt 0 ] ; do
builders="$builders $2"
shift
;;
-
+
--with )
with="$with $2"
shift
@@ -71,11 +71,21 @@ while [ $# -gt 0 ] ; do
flags="$flags $2"
shift
;;
+
+ --command-flags | -cf )
+ command_flags="$2"
+ shift
+ ;;
+
+ --command | -c )
+ command="$2"
+ shift
+ ;;
-* )
die "unknown knob: $1"
;;
-
+
*:* )
specs="$specs $1"
;;
@@ -109,7 +119,13 @@ for s in $specs ; do
done
if [ "$ok" = "" ] ; then
- die "no specs passed"
+ if [ "$command" = "" ] ; then
+ die "no specs passed"
+ fi
+else
+ if [ "$command" != "" ] ; then
+ die "cannot pass specs and --command"
+ fi
fi
id=$(uuidgen)
@@ -120,6 +136,17 @@ gen_req() {
echo " <priority>$priority</priority>"
echo
+ if [ "$command" != "" ] ; then
+ bid=$(uuidgen)
+ echo " <batch id='$bid' depends-on=''>"
+ echo " <command flags='$command_flags'>$command</command>"
+ echo " <info></info>"
+ for b in $builders ; do
+ echo " <builder>$b</builder>"
+ done
+ echo " </batch>"
+ else
+
# first id:
fid=
for s in $specs ; do
@@ -144,6 +171,8 @@ gen_req() {
done
echo " </batch>"
done
+
+ fi
echo "</group>"
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list