summaryrefslogtreecommitdiffabout
path: root/scripts/xml2sh.xsl
authorMichael Krelin <hacker@klever.net>2011-10-13 19:25:08 (UTC)
committer Michael Krelin <hacker@klever.net>2011-10-13 19:57:44 (UTC)
commit398a2173290b3db2a7026dd0c1cb4d742c4c7b4a (patch) (side-by-side diff)
treeb9ca9e14f72104dcd6514e59f9eed20614eca8ed /scripts/xml2sh.xsl
parent7f16ae237b9f881a98719ea493ac75043336f17f (diff)
downloadiii-398a2173290b3db2a7026dd0c1cb4d742c4c7b4a.zip
iii-398a2173290b3db2a7026dd0c1cb4d742c4c7b4a.tar.gz
iii-398a2173290b3db2a7026dd0c1cb4d742c4c7b4a.tar.bz2
moved xml2sh around
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'scripts/xml2sh.xsl') (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/xml2sh.xsl28
1 files changed, 0 insertions, 28 deletions
diff --git a/scripts/xml2sh.xsl b/scripts/xml2sh.xsl
deleted file mode 100644
index 736bc21..0000000
--- a/scripts/xml2sh.xsl
+++ b/dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="us-ascii"?>
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- >
- <xsl:output
- method="text"
- encoding="us-ascii"
- media-type="text/plain" />
-
- <xsl:template match="/">
- <xsl:apply-templates select="/Config/Cards/Card"/>
- </xsl:template>
-
- <xsl:template match="/Config/Cards/Card">
- <xsl:text>cat &gt;</xsl:text>
- <xsl:value-of select="translate(@MacAddress,'-','')"/>
- <xsl:text>.conf &lt;&lt;__EOF__&#xa;</xsl:text>
- <xsl:text>uploadkey=&quot;</xsl:text>
- <xsl:value-of select="UploadKey"/>
- <xsl:text>&quot;&#xa;</xsl:text>
- <xsl:text>targetdir=&quot;/var/lib/iii/%s&quot;&#xa;</xsl:text>
- <xsl:text>umask=022&#xa;</xsl:text>
- <xsl:text>__EOF__&#xa;</xsl:text>
- </xsl:template>
-
- <xsl:template match="*|text()"/>
-
-</xsl:stylesheet>