Commit b33bbc0e authored by Yaroslav Halchenko's avatar Yaroslav Halchenko Committed by NeuroDebian Mega-user

ENH: run nd_updatedist in parallel using parallel from moreutils

parent 554a9379
......@@ -14,7 +14,7 @@ XS-DM-Upload-Allowed: yes
Package: neurodebian-dev
Architecture: all
Depends: ${misc:Depends}, devscripts, cowbuilder, python, neurodebian-keyring
Recommends: virtualbox-ose, virtualbox-ose-fuse, zerofree
Recommends: virtualbox-ose, virtualbox-ose-fuse, zerofree, moreutils
Suggests:
Description: NeuroDebian development tools
neuro.debian.net sphinx website sources and development tools used by
......
......@@ -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
#!/bin/bash
family=$1
dist=$2
if [ $# -eq 1 ]; then
family=${1%%-*}
dist=${1##*-}
elif [ $# -eq 2 ]; then
family=$1
dist=$2
fi
set -e
......@@ -15,7 +20,7 @@ if [ -z "$dist" ]; then
exit 1
fi
. /etc/neurodebian/cmdsettings.sh
. /etc/neurodebian/cmdsettings.sh "$family" "$dist"
# common options
opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment