diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-03-14 19:30:26 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-03-14 21:18:47 +0000 |
commit | b1a8a52bb1460189a6781220e7b2bef45d86a7a5 (patch) | |
tree | 6d97d2180b3d811b79e49688e8947a13fe42e08c | |
parent | 07cace6dc89e8bebf07fca7bb27d3d5256fd8e05 (diff) |
Give jhbuild_repository_configure the ability to configure a single repo
-rwxr-xr-x | jhbuild_repository_configure | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/jhbuild_repository_configure b/jhbuild_repository_configure index f1656fa..e81f630 100755 --- a/jhbuild_repository_configure +++ b/jhbuild_repository_configure @@ -1,7 +1,8 @@ #!/bin/sh -for i in `jhbuild -f jhbuildrc list` ; do - +function repository_configure () +{ + i=$1 checkoutdir=`jhbuild -f jhbuildrc run --in-checkoutdir=$i -- pwd` # unfortunately, jhbuild run also echos the command it ran, so we need to remove that @@ -65,5 +66,14 @@ for i in `jhbuild -f jhbuildrc list` ; do cd - >/dev/null fi +} + +if [ "$#" -gt 0 ] ; then + ARGS="$*" +else + ARGS=`jhbuild -f jhbuildrc list` +fi +for i in $ARGS ; do + repository_configure $i done |