- for i in `xsltproc XSLT/lufa_filelist_transform.xslt $$f | grep -v "^<" | sed -e "/^$$/d"`; do \
- if ( ! test -f "`dirname $$f`/$$i" ); then \
- echo "Source file $$i referenced in $$f does not exist!"; \
+ echo "Checking $$f..."; \
+ asf_file_dir=`dirname $$f`; \
+ xsltproc XSLT/lufa_filelist_transform.xslt $$f | sed -e "/^$$/d" | while read -r i; do \
+ if ( ! test -f "$$asf_file_dir/$$i" ); then \
+ echo "Source file \"$$i\" referenced in $$f does not exist!"; \