summaryrefslogtreecommitdiff
path: root/build-all-with-docker
blob: f7dc4f9d589fc2d091bc25d73ea6e4766c802518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

cd "$(dirname "$(readlink -e "$0")")"

ids=$(
  for pkg in */PKGBUILD; do
    cd "${pkg%/PKGBUILD}"
    docker run -d -v .:/build arch-build:latest
    docker run -d -v .:/build artix-build:latest
    cd ..
  done \
  | tee /dev/stderr
)

while docker ps --no-trunc | grep -wF "${ids}"; do
  sleep 10
  date
done