- Timestamp:
- 06/14/2006 08:38:31 PM (18 years ago)
- Branches:
- experimental
- Children:
- d3d90e7
- Parents:
- d3f24df
- Location:
- BLFS/libs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/libs/func_parser
rd3f24df r37ac06a 137 137 138 138 # Log separator 139 echo -e "\n\tScripts generation errors:\n" >> xsltproc.log139 echo -e "\n\tScripts generation depuration and errors:\n" >> xsltproc.log 140 140 141 141 echo -en "\tGenerating the build scripts ..." -
BLFS/libs/scripts.xsl
rd3f24df r37ac06a 59 59 </xsl:choose> 60 60 </xsl:variable> 61 62 <!-- Depuration code --> 63 <xsl:message> 64 <xsl:text>SCRIPT is </xsl:text> 65 <xsl:value-of select="concat($order,'-',$filename)"/> 66 <xsl:text>
 PACKAGE is </xsl:text> 67 <xsl:value-of select="$package"/> 68 <xsl:text>
 FTPDIR is </xsl:text> 69 <xsl:value-of select="$ftpdir"/> 70 <xsl:text>

</xsl:text> 71 </xsl:message> 61 72 62 73 <!-- Creating the scripts --> … … 122 133 <xsl:template name="package_name"> 123 134 <xsl:param name="url" select="foo"/> 124 <xsl:message>125 <xsl:text>URL es </xsl:text>126 <xsl:value-of select="$url"/>127 </xsl:message>128 135 <xsl:param name="sub-url" select="substring-after($url,'/')"/> 129 136 <xsl:choose> … … 148 155 <xsl:template name="ftp_dir"> 149 156 <xsl:param name="package" select="foo"/> 150 <!-- Placeholder. We need here a lot of code from BLFS patcheslist.xsl --> 151 <xsl:value-of select="substring-before($package,'-')"/> 157 <!-- From BLFS patcheslist.xsl. Need be revised and fixed. --> 158 <xsl:choose> 159 <!-- cdparanoia --> 160 <xsl:when test="contains($package, '-III')"> 161 <xsl:text>cdparanoia</xsl:text> 162 </xsl:when> 163 <!-- Open Office --> 164 <xsl:when test="contains($package, 'OOo')"> 165 <xsl:text>OOo</xsl:text> 166 </xsl:when> 167 <!-- QT --> 168 <xsl:when test="contains($package, 'qt-x')"> 169 <xsl:text>qt</xsl:text> 170 </xsl:when> 171 <!-- XOrg --> 172 <xsl:when test="contains($package, 'X11R6')"> 173 <xsl:text>xorg</xsl:text> 174 </xsl:when> 175 <!-- General rule --> 176 <xsl:otherwise> 177 <xsl:variable name="cut" 178 select="translate(substring-after($package, '-'), '0123456789', '0000000000')"/> 179 <xsl:variable name="package2"> 180 <xsl:value-of select="substring-before($package, '-')"/> 181 <xsl:text>-</xsl:text> 182 <xsl:value-of select="$cut"/> 183 </xsl:variable> 184 <xsl:value-of select="substring-before($package2, '-0')"/> 185 </xsl:otherwise> 186 </xsl:choose> 152 187 </xsl:template> 153 188
Note:
See TracChangeset
for help on using the changeset viewer.