Changeset 9c5ea2f for BLFS


Ignore:
Timestamp:
11/17/2013 08:26:47 AM (11 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
0ba80be
Parents:
e58cf153
Message:

Correct a bug which could replace "makeinfo" with "make -j1info"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/scripts.xsl

    re58cf153 r9c5ea2f  
    480480            contains(string(),'check'))">
    481481      <xsl:text>#</xsl:text>
    482       <xsl:value-of select="substring-before(string(),'make')"/>
    483       <xsl:text>make -k</xsl:text>
    484       <xsl:value-of select="substring-after(string(),'make')"/>
     482      <xsl:value-of select="substring-before(string(),'make ')"/>
     483      <xsl:text>make </xsl:text>
     484      <xsl:if test="not(contains(string(),'-k'))">
     485        <xsl:text>-k </xsl:text>
     486      </xsl:if>
     487      <xsl:value-of select="substring-after(string(),'make ')"/>
    485488      <xsl:text> || true&#xA;</xsl:text>
    486489    </xsl:if>
     
    563566    <xsl:param name="out-string" select="''"/>
    564567    <xsl:choose>
    565       <xsl:when test="contains($out-string,'make')">
    566         <xsl:call-template name="output-root">
    567           <xsl:with-param name="out-string"
    568                           select="substring-before($out-string,'make')"/>
    569         </xsl:call-template>
    570         <xsl:text>make -j1</xsl:text>
    571         <xsl:call-template name="output-root">
    572           <xsl:with-param name="out-string"
    573                           select="substring-after($out-string,'make')"/>
     568      <xsl:when test="contains($out-string,'make ')">
     569        <xsl:call-template name="output-root">
     570          <xsl:with-param name="out-string"
     571                          select="substring-before($out-string,'make ')"/>
     572        </xsl:call-template>
     573        <xsl:text>make -j1 </xsl:text>
     574        <xsl:call-template name="output-root">
     575          <xsl:with-param name="out-string"
     576                          select="substring-after($out-string,'make ')"/>
    574577        </xsl:call-template>
    575578      </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.