#!/bin/sh
if [ -d /tmp/armlfs-evt ]; then
(
cd /tmp/armlfs-evt
if [ -d ./done ] && [ $(ls -1 ./done | wc -l) -gt 0 ]; then
echo "Autobuild report -- DONE:"
cd "done"
for p in $(ls -1trc); do
cat $p
rm $p
done
cd ..
fi
if [ -d ./failed ] && [ $(ls -1 failed | wc -l) -gt 0 ]; then
echo "Autobuild report -- FAILED:"
cd "failed"
for p in $(ls -1trc); do
cat $p
rm $p
done
cd ..
fi
if [ -d ./active ] && [ $(ls -1 active | wc -l) -gt 0 ]; then
echo "The system is building - ACTIVE builds:"
cd "active"
for p in $(ls -1trc); do
cat $p
done
cd ..
fi
)
fi