#!/bin/bash # export DISTCC_HOSTS='...' export PATH="/usr/lib/distcc/bin:$PATH" if ! (make -j$(distcc -j) && make install DESTDIR=/tmp/s/r2/); then exit 125 fi l=$(/tmp/s/r2/usr/bin/journalctl -D /tmp/stuff -a | head -n 10000 | wc -l) { date git describe echo "$l" echo } >> /tmp/bisect-log case $l in 5136) exit 0 ;; 10000) exit 1 ;; esac echo "Unknown line count: $l" >&2 exit 255