#!/bin/bash
ROOT=./lib/coverage
HTTP="/"
OUTPUT="./lib/coverage/index.html"
RULE=".*\.\(html\)"
echo "
Coverage ADF Reports
" > $OUTPUT
echo "" >> $OUTPUT
i=0
for filepath in `find "$ROOT" -maxdepth 1 -mindepth 1 -type d| sort`; do
path=`basename "$filepath"`
for i in `find "$filepath" -regex "$RULE" -maxdepth 1 -mindepth 1 -type f| sort`; do
file=`basename "$i"`
echo " - $path
" >> $OUTPUT
done
done
echo "
" >> $OUTPUT