outputpkgdest: don't mix make and qmake

For outputting DESTDIR=, we need to test whether the text contains
"make". But when it contains "qmake" (or any different word containing
"make" but not exactly "make), we don't want to output anything more
than the text. So strengthen the test.
This commit is contained in:
Pierre Labastie 2023-03-19 10:15:18 +01:00
parent 6ac0d96300
commit 3fa4147515

View file

@ -944,7 +944,8 @@ echo Size after install: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG
<xsl:template name="outputpkgdest"> <xsl:template name="outputpkgdest">
<xsl:param name="outputstring" select="'foo'"/> <xsl:param name="outputstring" select="'foo'"/>
<xsl:choose> <xsl:choose>
<xsl:when test="contains($outputstring,'make ')"> <xsl:when test="contains(normalize-space($outputstring),' make ') or
starts-with($outputstring, 'make ')">
<xsl:choose> <xsl:choose>
<xsl:when test="not(starts-with($outputstring,'make'))"> <xsl:when test="not(starts-with($outputstring,'make'))">
<xsl:call-template name="outputpkgdest"> <xsl:call-template name="outputpkgdest">