aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration/XSLT
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-01-05 13:11:49 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-01-05 13:11:49 +0000
commitfbab86090290107b9aeeb75c6a60220c30140941 (patch)
tree62e4241f8693e2c83f263427cff4d78454884575 /LUFA/StudioIntegration/XSLT
parent78e6e4f4c237123f97bbfcc2e8fc0fda01fc1bd8 (diff)
downloadlufa-fbab86090290107b9aeeb75c6a60220c30140941.tar.gz
lufa-fbab86090290107b9aeeb75c6a60220c30140941.tar.bz2
lufa-fbab86090290107b9aeeb75c6a60220c30140941.zip
Add transform to update the VSIX extension version automatically when built.
Diffstat (limited to 'LUFA/StudioIntegration/XSLT')
-rw-r--r--LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt32
1 files changed, 32 insertions, 0 deletions
diff --git a/LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt b/LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt
new file mode 100644
index 000000000..7f39b9e91
--- /dev/null
+++ b/LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt
@@ -0,0 +1,32 @@
+<!--
+ LUFA Library
+ Copyright (C) Dean Camera, 2013.
+
+ dean [at] fourwalledcubicle [dot] com
+ www.lufa-lib.org
+-->
+
+<!-- Atmel Studio framework VSIX XML transform file -->
+
+<!-- -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vs="http://schemas.microsoft.com/developer/vsx-schema/2010" version="1.0">
+ <xsl:output method="xml" omit-xml-declaration="yes"/>
+
+ <!-- Need to input the extension version for later use -->
+ <xsl:param name="extension-version"/>
+
+ <!-- Recursively match and copy/process all nodes/attributes -->
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <!-- Update the extension version to the version of LUFA being used -->
+ <xsl:template match="vs:Version">
+ <xsl:copy>
+ <xsl:value-of select="$extension-version"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>