X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd_updateall;h=150d97c6f68a40deb4551b58b5f4e4fcc787770d;hb=HEAD;hp=aaf30c5f1ffbfd58cc420edbe8537f87657dc24e;hpb=2a33abc7570f55b8c2cb7c91f243254653d829b7;p=neurodebian.git diff --git a/tools/nd_updateall b/tools/nd_updateall index aaf30c5..150d97c 100755 --- a/tools/nd_updateall +++ b/tools/nd_updateall @@ -2,9 +2,15 @@ . /etc/neurodebian/cmdsettings.sh -for d in $alldists; do - dfamily=${d%%-*} - drelease=${d##*-} - - nd_updatedist $dfamily $drelease -done +if [ -z "$SERIAL" ]; then + parallel nd_updatedist -- $alldists +else + # Original serial version, we might want to switch between the two + # upon -j + for d in $alldists; do + dfamily=${d%%-*} + drelease=${d##*-} + + nd_updatedist $dfamily $drelease + done +fi