#!/bin/bash
set -o pipefail
-set -ex
+set -e
cpus=$(
perl -we '
./generate $cpu/$ncpus "$@" | \
../dpkg/src/dpkg --filter-valid-versions | \
./escape | \
- ./check $cpu
+ perl -pe 's#^#refs/tags/#' | \
+ ../git/git-check-ref-format --report-errors --stdin
echo >&2 "cpu $cpu ok"
) &
pids+=( $! )
done
+set +e
+ok=true
for pid in ${pids[*]}; do
- wait $pid
+ wait $pid || ok=false
done
+set -e
+
+$ok || echo >&2 'BAD'
+
+$ok
echo '*** OK EVERYTHING IS FINE ***'