Changeset 6c9002b for BLFS


Ignore:
Timestamp:
02/27/2017 02:02:16 PM (8 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
f769d1f
Parents:
ed4f11f
Message:

Fix the BLFS tools for the "Xorg Legacy" page

Location:
BLFS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/gen-special.sh

    red4f11f r6c9002b  
    4040# Non-versioned packages:
    4141NV_LIST="cacerts xorg-env kde-pre-install-config kf5-intro lxqt-pre-install \
    42 ojdk-conf tex-path"
     42lxqt-post-install ojdk-conf tex-path"
    4343
    4444# Set PATH to be sure to find udevadm
     
    147147# except the first.
    148148  list_cat="$(sed -n '/>cat/,/EOF</p' $file | grep -v 'cat\|EOF' |
    149                  sed 's/^[^ ]*\ *\([^&]*\).*/\1/' | sed 's/-$//')"
     149              awk '{ print $NF }' | sed 's/-&.*//')"
    150150
    151151# Rationale for the sed below: the following for breaks words at spaces (unless
  • BLFS/xsl/make_book.xsl

    red4f11f r6c9002b  
    308308      </xsl:call-template>
    309309    </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>
    310317    <xsl:variable name="install-instructions">
    311318      <xsl:call-template name="inst-instr">
     
    329336                <xsl:value-of
    330337                   select=".//para[contains(string(),'(HTTP)')]/ulink/@url"/>
     338                <xsl:value-of select="$download-dir"/>
    331339                <xsl:value-of select="$tarball"/>
    332340              </xsl:attribute>
     
    339347                <xsl:value-of
    340348                   select=".//para[contains(string(),'(FTP)')]/ulink/@url"/>
     349                <xsl:value-of select="$download-dir"/>
    341350                <xsl:value-of select="$tarball"/>
    342351              </xsl:attribute>
     
    408417        </xsl:call-template>
    409418      </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>
    410426      <xsl:otherwise>
    411427        <xsl:copy-of select="substring-after(
    412                                  substring-before($cat-md5,'&#xA;'),'  ')"/>
     428                                substring-before($cat-md5,'&#xA;'),' ')"/>
     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),'&#xA;')">
     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,'&#xA;')"/>
     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,' ')"/>
    413456      </xsl:otherwise>
    414457    </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.