experimental
Last change
on this file since 386bc75 was 9c90294, checked in by George Boudreau <georgeb@…>, 19 years ago |
CLFS extract_commands now part of common_func. pushd/popd added to master.sh to deal with multitiple files defined in config param FILES. Added to xsl files to CLFS dir
|
-
Property mode
set to
100644
|
File size:
984 bytes
|
Line | |
---|
1 | <?xml version='1.0' encoding='ISO-8859-1'?>
|
---|
2 | <!DOCTYPE xsl:stylesheet [
|
---|
3 | <!ENTITY % general-entities SYSTEM "clfs-development/general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 |
|
---|
7 | <!--$Id
|
---|
8 | XSLT stylesheet to create wget scripts to download packages and patches.
|
---|
9 | Only for Cross-LFS.
|
---|
10 |
|
---|
11 | Usage example:
|
---|
12 |
|
---|
13 | xsltproc -xinclude -output x86.wget stylesheets/wget.xsl x86-index.xml
|
---|
14 | -->
|
---|
15 |
|
---|
16 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
17 | version="1.0">
|
---|
18 |
|
---|
19 | <xsl:output method="text"/>
|
---|
20 |
|
---|
21 | <xsl:template match="/">
|
---|
22 | <xsl:apply-templates select="//ulink"/>
|
---|
23 | </xsl:template>
|
---|
24 |
|
---|
25 | <xsl:template match="ulink">
|
---|
26 | <!-- Patches. Match only the patches and skip possible duplicated
|
---|
27 | URLs due that may be splitted for PDF output-->
|
---|
28 | <xsl:if test="contains(@url, '.patch') and contains(@url, '&patches-root;')
|
---|
29 | and not(ancestor-or-self::*/@condition = 'pdf')">
|
---|
30 | <xsl:value-of select="@url"/>
|
---|
31 | <xsl:text>
</xsl:text>
|
---|
32 | </xsl:if>
|
---|
33 | </xsl:template>
|
---|
34 |
|
---|
35 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.