Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lufa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Erik Strand
lufa
Commits
fbab8609
Commit
fbab8609
authored
Jan 05, 2013
by
Dean Camera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add transform to update the VSIX extension version automatically when built.
parent
78e6e4f4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
5 deletions
+37
-5
LUFA/StudioIntegration/VSIX/extension.vsixmanifest
LUFA/StudioIntegration/VSIX/extension.vsixmanifest
+2
-2
LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt
LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt
+32
-0
LUFA/StudioIntegration/makefile
LUFA/StudioIntegration/makefile
+3
-3
No files found.
LUFA/StudioIntegration/VSIX/extension.vsixmanifest
View file @
fbab8609
LUFA/StudioIntegration/XSLT/lufa_vsmanifest_transform.xslt
0 → 100644
View file @
fbab8609
<!--
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>
LUFA/StudioIntegration/makefile
View file @
fbab8609
...
...
@@ -16,6 +16,7 @@ EXTENSION_OUTPUT_XML := $(LUFA_ROOT)/../extension.xml
MODULE_OUTPUT_XML
:=
$(LUFA_ROOT)
/asf.xml
XML_FILES
:=
$(
filter-out
$(TEMP_MANIFEST_FILE)
,
$(
shell
ls
*
.xml
))
LUFA_VERSION_NUM
:=
$(
shell
grep
LUFA_VERSION_STRING
$(LUFA_ROOT)
/Version.h |
cut
-d
'"'
-f2
)
EXT_VERSION_NUM
:=
$(
shell
date
+
"%y.%m.%d"
)
.
$(LUFA_VERSION_NUM)
all
:
check_filenames generate_xml generate_vsix
...
...
@@ -45,10 +46,9 @@ generate_xml: $(TEMP_MANIFEST_XML)
@xsltproc
XSLT/lufa_extension_transform.xslt
$<
|
xsltproc
XSLT/lufa_indent_transform.xslt
-
>
$(EXTENSION_OUTPUT_XML)
@echo
"Atmel Studio extension.xml file generated."
@rm
$(TEMP_MANIFEST_XML)
generate_vsix
:
$(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML)
cp
VSIX/
*
$(LUFA_ROOT)
/../
cp
"VSIX/[Content_Types].xml"
$(LUFA_ROOT)
/../
xsltproc
--stringparam
extension-version
$(EXT_VERSION_NUM)
XSLT/lufa_vsmanifest_transform.xslt VSIX/extension.vsixmanifest
>
$(LUFA_ROOT)
/../extension.vsixmanifest
cd
$(LUFA_ROOT)
/../
;
zip LUFA_AS_Extension.vsix
-r
--exclude
=
*
StudioIntegration
*
*
check_filenames
:
$(TEMP_MANIFEST_XML)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment