Changeset 63b2859 for dump-commands.xsl
- Timestamp:
- 09/26/2005 10:36:40 PM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- c4cf6de
- Parents:
- 409488e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dump-commands.xsl
r409488e r63b2859 5 5 version="1.0"> 6 6 7 <!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->7 <!-- XSLT stylesheet to create shell scripts from LFS books. --> 8 8 9 9 <xsl:template match="/"> … … 40 40 <!-- Creating dirs and files --> 41 41 <exsl:document href="{$dirname}/{$order}-{$filename}" method="text"> 42 <xsl:text>#!/bin/sh

</xsl:text> 42 43 <xsl:apply-templates select=".//screen"/> 43 44 </exsl:document> … … 48 49 <xsl:choose> 49 50 <xsl:when test="@role = 'nodump'"/> 50 <xsl:when test="@role = 'root'">51 <xsl:text>
</xsl:text>52 <xsl:text># Run this as root</xsl:text>53 <xsl:apply-templates select="userinput"/>54 <xsl:text># End root commands</xsl:text>55 <xsl:text>
</xsl:text>56 </xsl:when>57 51 <xsl:otherwise> 58 52 <xsl:apply-templates select="userinput"/> … … 63 57 64 58 <xsl:template match="userinput"> 65 <xsl:text>
</xsl:text>66 <xsl:if test=".//replaceable">67 <xsl:text># This block must be edited to suit your needs.</xsl:text>68 </xsl:if>69 <xsl:text>
</xsl:text>70 59 <xsl:apply-templates/> 71 <xsl:text>
</xsl:text> 72 <xsl:if test=".//replaceable"> 73 <xsl:text># End of editable block.</xsl:text> 74 </xsl:if> 75 <xsl:text>
</xsl:text> 60 <xsl:text> &&
</xsl:text> 76 61 </xsl:template> 77 62
Note:
See TracChangeset
for help on using the changeset viewer.