Check referenced distribute build files in the project XML files, as well as C source...
authorDean Camera <dean@fourwalledcubicle.com>
Fri, 11 Jan 2013 23:10:25 +0000 (23:10 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Fri, 11 Jan 2013 23:10:25 +0000 (23:10 +0000)
LUFA/StudioIntegration/XSLT/lufa_filelist_transform.xslt
LUFA/StudioIntegration/makefile

index 103ff51..9affc9f 100644 (file)
@@ -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>
index c0fd278..a9d8a4a 100644 (file)
@@ -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.