mirror/merlin_old/rebuild.sh

11 lines
276 B
Bash
Raw Normal View History

2021-09-09 00:31:28 -04:00
#!/bin/bash
IFS=$'\n'
for i in `cat merlin.py | sed -ne "s/^[ ]\+'command':[ ]*'\([^']\+\).*$/\1/pg"`; do
while [ "`jobs|wc -l`" -ge 9 ]; do
sleep 1
done
echo "$i"
logfile="`echo "$i" | cut -d' ' -f2 | sed -e's/\//_/g'`"
bash -c "$i" >rebuild_logs/$logfile 2>&1 &
done