X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd_updateall;h=150d97c6f68a40deb4551b58b5f4e4fcc787770d;hb=0468a1159b6a8349389f2300d8b3648f80283bed;hp=aaf30c5f1ffbfd58cc420edbe8537f87657dc24e;hpb=b9aa9eb584bd2402306b514ad05aff83a9699ce8;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