aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-01-11 23:10:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-01-11 23:10:25 +0000
commit33bc48fa4626b0c61fc870c30557f54ff7381d0c (patch)
tree962cfce273295b3496e477ab8ad0954082d9ef74
parented372b031c75fdc206844b3e9b01ce837193ac80 (diff)
downloadlufa-33bc48fa4626b0c61fc870c30557f54ff7381d0c.tar.gz
lufa-33bc48fa4626b0c61fc870c30557f54ff7381d0c.tar.bz2
lufa-33bc48fa4626b0c61fc870c30557f54ff7381d0c.zip
Check referenced distribute build files in the project XML files, as well as C source and header files.
-rw-r--r--LUFA/StudioIntegration/XSLT/lufa_filelist_transform.xslt2
-rw-r--r--LUFA/StudioIntegration/makefile6
2 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/StudioIntegration/XSLT/lufa_filelist_transform.xslt b/LUFA/StudioIntegration/XSLT/lufa_filelist_transform.xslt
index 103ff51a9..9affc9f67 100644
--- a/LUFA/StudioIntegration/XSLT/lufa_filelist_transform.xslt
+++ b/LUFA/StudioIntegration/XSLT/lufa_filelist_transform.xslt
@@ -28,7 +28,7 @@
</xsl:template>
<!-- Match source file nodes, output filename -->
- <xsl:template match="build[@type='c-source']|build[@type='header-file']">
+ <xsl:template match="build[@type='c-source']|build[@type='header-file']|build[@type='distribute']">
<xsl:value-of select="@value"/>
<xsl:text>&#xA;</xsl:text>
</xsl:template>
diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile
index c0fd278af..a9d8a4afc 100644
--- a/LUFA/StudioIntegration/makefile
+++ b/LUFA/StudioIntegration/makefile
@@ -72,12 +72,12 @@ generate_vsix: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML)
check_filenames: $(MODULE_OUTPUT_XML)
@echo Verifying referenced filenames of ASF.xml modules...
@for f in `find $(LUFA_ROOT)/../ -name "asf.xml"`; do \
- for i in `xsltproc XSLT/lufa_filelist_transform.xslt $$f | grep -v "^<" | sed -e "/^$$/d"`; do \
+ xsltproc XSLT/lufa_filelist_transform.xslt $$f | grep -v "^<" | sed -e "/^$$/d" | while read -r i; do \
if ( ! test -f "`dirname $$f`/$$i" ); then \
- echo "Source file $$i referenced in $$f does not exist!"; \
+ echo "Source file \"$$i\" referenced in $$f does not exist!"; \
exit 1; \
fi; \
- done; \
+ done || exit 1; \
done;
@echo Verified referenced filenames of ASF.xml modules.