Only output DESTDIR when the command is "ninja install"
This commit is contained in:
parent
4696ddd406
commit
1cb4c7662c
1 changed files with 6 additions and 5 deletions
11
LFS/lfs.xsl
11
LFS/lfs.xsl
|
@ -845,21 +845,22 @@ DNS=</xsl:text>
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($outputstring,'ninja ')">
|
||||
<xsl:when test="contains($outputstring,'ninja install')">
|
||||
<xsl:choose>
|
||||
<xsl:when test="not(starts-with($outputstring,'ninja'))">
|
||||
<xsl:when test="not(starts-with($outputstring,'ninja install'))">
|
||||
<xsl:call-template name="outputpkgdest">
|
||||
<xsl:with-param name="outputstring"
|
||||
select="substring-before($outputstring,'ninja')"/>
|
||||
select="substring-before($outputstring,'ninja install')"/>
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="outputpkgdest">
|
||||
<xsl:with-param
|
||||
name="outputstring"
|
||||
select="substring-after($outputstring,
|
||||
substring-before($outputstring,'ninja'))"/>
|
||||
substring-before($outputstring,'ninja install'))"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise> <!-- ninja is the first word -->
|
||||
<xsl:otherwise> <!-- "ninja" is the first word and is followed by
|
||||
"install"-->
|
||||
<xsl:text>DESTDIR=$PKG_DEST ninja</xsl:text>
|
||||
<xsl:call-template name="outputpkgdest">
|
||||
<xsl:with-param
|
||||
|
|
Reference in a new issue