No overall functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
fi
}
-bm-report-source () {
+bm-report-test () {
+ local desc=$1; shift
if "$@"; then
- echo >&4 "SOURCE EXISTS"
+ echo >&4 "$desc EXISTS"
else
- echo >&4 "SOURCE MISSING"
+ echo >&4 "$desc MISSING"
fi
}
echo >&4 "EXAMPLE RULES TARGET $t"
done
- bm-report-source $e_source
+ bm-report-test "SOURCE FILE" $e_source
exec 4>&-
}
egrep >&4 '^EXAMPLE RULES TARGET|^BUILD-MODES' $bmlog || [ $? = 1 ]
- bm-report-source [ -e $dsc ]
+ bm-report-test "SOURCE FILE" [ -e $dsc ]
exec 4>&-