allows using multiple patchwork ids in one go: e.g. you want to mark a whole patch set containing pw ids 2998 to 3008 as superseded: ./util/pwclient_sequence.sh 2998 3008 update -s Superseded
this should probably be a patch to pwclient itself, but i dont wanna touch it right now.
Signed-off-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at --- util/pwclient_sequence.sh | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100755 util/pwclient_sequence.sh
diff --git a/util/pwclient_sequence.sh b/util/pwclient_sequence.sh new file mode 100755 index 0000000..e901118 --- /dev/null +++ b/util/pwclient_sequence.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ $# -lt 3 ]; then + echo "usage: $0 id_low id_high arguments +will execute 'pwclient <arguments> id' +for every id from id_low to id_high" + exit 1 +fi + +low=$1 +high=$2 +shift 2 + +for id in `seq $low $high` ; do + pwclient $@ $id +done \ No newline at end of file