summaryrefslogtreecommitdiffstats
path: root/_scripts
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-26 10:23:55 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-26 10:23:55 +0100
commit9a2daec3a3354e66101c766d58a988f2e70eaa08 (patch)
tree60e16892fe9392db220d4ac0cf31efaafdfbdd05 /_scripts
parent1df7c2f86ee63a9efff859e8be323a8b77f23d91 (diff)
downloadalpine-mksite-9a2daec3a3354e66101c766d58a988f2e70eaa08.tar.bz2
alpine-mksite-9a2daec3a3354e66101c766d58a988f2e70eaa08.tar.xz
make: clean up git-commits.yaml generation
Diffstat (limited to '_scripts')
-rw-r--r--_scripts/atom-to-yaml.xsl54
1 files changed, 0 insertions, 54 deletions
diff --git a/_scripts/atom-to-yaml.xsl b/_scripts/atom-to-yaml.xsl
deleted file mode 100644
index 6c9a5e7..0000000
--- a/_scripts/atom-to-yaml.xsl
+++ /dev/null
@@ -1,54 +0,0 @@
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:atom="http://www.w3.org/2005/Atom"
- exclude-result-prefixes="atom"
->
-<xsl:output omit-xml-declaration="yes"/>
-<xsl:template match="/">
----
-<xsl:apply-templates select="atom:feed/atom:entry" />
----
-</xsl:template>
- <xsl:template name="escapeQuotes">
- <xsl:param name="txt"/>
- <xsl:variable name="backSlashQuote">&#92;&#39;</xsl:variable>
- <xsl:variable name="singleQuote">&#39;</xsl:variable>
-
- <xsl:choose>
- <xsl:when test="string-length($txt) = 0">
- <!-- ... -->
- </xsl:when>
-
- <xsl:when test="contains($txt, $singleQuote)">
- <xsl:value-of disable-output-escaping="yes" select="concat(substring-before($txt, $singleQuote), $backSlashQuote)"/>
-
- <xsl:call-template name="escapeQuotes">
- <xsl:with-param name="txt" select="substring-after($txt, $singleQuote)"/>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:otherwise>
- <xsl:value-of disable-output-escaping="yes" select="$txt"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-<xsl:template match="atom:entry">
--
- title: '<xsl:call-template name="escapeQuotes">
- <xsl:with-param name="txt" select="atom:title"/>
- </xsl:call-template>'
- id: '<xsl:call-template name="escapeQuotes">
- <xsl:with-param name="txt" select="atom:id"/>
- </xsl:call-template>'
- author_name: '<xsl:call-template name="escapeQuotes">
- <xsl:with-param name="txt" select="atom:author/atom:name"/>
- </xsl:call-template>'
- author_email: '<xsl:value-of select="atom:author/atom:email"/>'
- published: <xsl:value-of select="atom:published"/>
- updated: <xsl:value-of select="atom:updated"/>
- link: <xsl:value-of select="atom:link/@href"/>
-</xsl:template>
-
-</xsl:stylesheet>