[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.50-214-g4b1e987
Holger Levsen
holger at layer-acht.org
Tue May 14 19:51:07 UTC 2013
The following commit has been merged in the develop branch:
commit 4b1e987ee3131ec10a0324d8cdd157944fd520b1
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue May 14 21:48:18 2013 +0200
slave_run: allow starting of certain slaves
diff --git a/slave-bin/slave_run.in b/slave-bin/slave_run.in
index 5e53586..43c23cd 100755
--- a/slave-bin/slave_run.in
+++ b/slave-bin/slave_run.in
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
-# Copyright 2009-2011 Holger Levsen (holger at layer-acht.org)
+# Copyright 2009-2013 Holger Levsen (holger at layer-acht.org)
# Copyright © 2013 Andreas Beckmann (anbe at debian.org)
#
# This program is free software; you can redistribute it and/or modify it
@@ -58,7 +58,15 @@ cd $SLAVEROOT
screen -S $SESSIONNAME -d -m
echo "Started screen session '$SESSIONNAME'."
-for SLAVENUM in $(seq $SLAVECOUNT)
+# run this on a single slave or a sequence of slaves
+# FIXME: this should really test whether $1 is an integer and within SLAVECOUNT
+if [ "$1" != "" ] ; then
+ SLAVES=$1
+else
+ SLAVES="$(seq $SLAVECOUNT)"
+fi
+
+for SLAVENUM in $SLAVES
do
mkdir -p $SLAVENUM
SLAVEDIR=$(readlink -f $SLAVENUM)
--
piuparts git repository
More information about the Piuparts-commits
mailing list