Changeset 6c9002b
- Timestamp:
- 02/27/2017 02:02:16 PM (8 years ago)
- Branches:
- new_features
- Children:
- f769d1f
- Parents:
- ed4f11f
- Location:
- BLFS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/gen-special.sh
red4f11f r6c9002b 40 40 # Non-versioned packages: 41 41 NV_LIST="cacerts xorg-env kde-pre-install-config kf5-intro lxqt-pre-install \ 42 ojdk-conf tex-path"42 lxqt-post-install ojdk-conf tex-path" 43 43 44 44 # Set PATH to be sure to find udevadm … … 147 147 # except the first. 148 148 list_cat="$(sed -n '/>cat/,/EOF</p' $file | grep -v 'cat\|EOF' | 149 sed 's/^[^ ]*\ *\([^&]*\).*/\1/' | sed 's/-$//')"149 awk '{ print $NF }' | sed 's/-&.*//')" 150 150 151 151 # Rationale for the sed below: the following for breaks words at spaces (unless -
BLFS/xsl/make_book.xsl
red4f11f r6c9002b 308 308 </xsl:call-template> 309 309 </xsl:variable> 310 <xsl:variable name="download-dir"> 311 <xsl:call-template name="download-dir"> 312 <xsl:with-param name="package" select="concat(' ',$package,'-')"/> 313 <xsl:with-param name="cat-md5" 314 select=".//userinput[starts-with(string(),'cat ')]"/> 315 </xsl:call-template> 316 </xsl:variable> 310 317 <xsl:variable name="install-instructions"> 311 318 <xsl:call-template name="inst-instr"> … … 329 336 <xsl:value-of 330 337 select=".//para[contains(string(),'(HTTP)')]/ulink/@url"/> 338 <xsl:value-of select="$download-dir"/> 331 339 <xsl:value-of select="$tarball"/> 332 340 </xsl:attribute> … … 339 347 <xsl:value-of 340 348 select=".//para[contains(string(),'(FTP)')]/ulink/@url"/> 349 <xsl:value-of select="$download-dir"/> 341 350 <xsl:value-of select="$tarball"/> 342 351 </xsl:attribute> … … 408 417 </xsl:call-template> 409 418 </xsl:when> 419 <xsl:when test="contains(substring-before($cat-md5,$package),' ')"> 420 <xsl:call-template name="tarball"> 421 <xsl:with-param name="package" select="$package"/> 422 <xsl:with-param name="cat-md5" 423 select="substring-after($cat-md5,' ')"/> 424 </xsl:call-template> 425 </xsl:when> 410 426 <xsl:otherwise> 411 427 <xsl:copy-of select="substring-after( 412 substring-before($cat-md5,'
'),' ')"/> 428 substring-before($cat-md5,'
'),' ')"/> 429 </xsl:otherwise> 430 </xsl:choose> 431 </xsl:template> 432 <!-- get the download dirname from the text that comes from the .md5 file --> 433 <xsl:template name="download-dir"> 434 <xsl:param name="package"/> 435 <xsl:param name="cat-md5"/> 436 <xsl:choose> 437 <xsl:when test="not(@id='xorg7-legacy')"> 438 <xsl:copy-of select="''"/> 439 </xsl:when> 440 <xsl:when test="contains(substring-before($cat-md5,$package),'
')"> 441 <xsl:call-template name="download-dir"> 442 <xsl:with-param name="package" select="$package"/> 443 <xsl:with-param name="cat-md5" 444 select="substring-after($cat-md5,'
')"/> 445 </xsl:call-template> 446 </xsl:when> 447 <xsl:when test="contains(substring-before($cat-md5,$package),' ')"> 448 <xsl:call-template name="download-dir"> 449 <xsl:with-param name="package" select="$package"/> 450 <xsl:with-param name="cat-md5" 451 select="substring-after($cat-md5,' ')"/> 452 </xsl:call-template> 453 </xsl:when> 454 <xsl:otherwise> 455 <xsl:copy-of select="substring-before($cat-md5,' ')"/> 413 456 </xsl:otherwise> 414 457 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.