Changeset 6caa5b8 for LFS/lfs.xsl
- Timestamp:
- 05/31/2020 07:31:32 AM (4 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- 7e0a1b8
- Parents:
- 9728b23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/lfs.xsl
r9728b23 r6caa5b8 1081 1081 <xsl:template name="comment-test"> 1082 1082 <xsl:param name="instructions" select="''"/> 1083 <xsl:param name="eof-seen" select="false()"/> 1083 1084 <xsl:choose> 1084 1085 <xsl:when test="contains($instructions,'
')"> … … 1086 1087 <xsl:with-param name="instructions" 1087 1088 select="substring-before($instructions,'
')"/> 1088 </xsl:call-template> 1089 <xsl:call-template name="comment-test"> 1090 <xsl:with-param name="instructions" 1091 select="substring-after($instructions,'
')"/> 1092 </xsl:call-template> 1089 <xsl:with-param name="eof-seen" select="$eof-seen"/> 1090 </xsl:call-template> 1091 <xsl:choose> 1092 <xsl:when test="contains(substring-before($instructions,'
'), 1093 'EOF')"> 1094 <xsl:call-template name="comment-test"> 1095 <xsl:with-param name="instructions" 1096 select="substring-after($instructions,'
')"/> 1097 <xsl:with-param name="eof-seen" select="not($eof-seen)"/> 1098 </xsl:call-template> 1099 </xsl:when> 1100 <xsl:otherwise> 1101 <xsl:call-template name="comment-test"> 1102 <xsl:with-param name="instructions" 1103 select="substring-after($instructions,'
')"/> 1104 <xsl:with-param name="eof-seen" select="$eof-seen"/> 1105 </xsl:call-template> 1106 </xsl:otherwise> 1107 </xsl:choose> 1093 1108 </xsl:when> 1094 1109 <xsl:otherwise> … … 1109 1124 <xsl:when test="contains(string(), 'make -k')"> 1110 1125 <xsl:value-of select="$instructions"/> 1111 <xsl:text> >> $TEST_LOG 2>&1 || true
</xsl:text> 1126 <xsl:if test="not($eof-seen)"> 1127 <xsl:text> >> $TEST_LOG 2>&1 || true</xsl:text> 1128 </xsl:if> 1129 <xsl:text>
</xsl:text> 1112 1130 </xsl:when> 1113 1131 <xsl:when test="contains($instructions, 'make')"> … … 1115 1133 <xsl:text>make -k</xsl:text> 1116 1134 <xsl:value-of select="substring-after($instructions, 'make')"/> 1117 <xsl:text> >> $TEST_LOG 2>&1 || true
</xsl:text> 1135 <xsl:if test="not($eof-seen)"> 1136 <xsl:text> >> $TEST_LOG 2>&1 || true</xsl:text> 1137 </xsl:if> 1138 <xsl:text>
</xsl:text> 1118 1139 </xsl:when> 1119 1140 <xsl:otherwise> … … 1121 1142 <xsl:if 1122 1143 test="not(contains($instructions, '>>')) and 1144 not($eof-seen) and 1123 1145 substring($instructions, 1124 1146 string-length($instructions)) != '\'"> 1125 <xsl:text> >> $TEST_LOG 2>&1 </xsl:text>1147 <xsl:text> >> $TEST_LOG 2>&1 || true</xsl:text> 1126 1148 </xsl:if> 1127 1149 <xsl:text>
</xsl:text> … … 1134 1156 <xsl:when test="contains($instructions, 'make -k')"> 1135 1157 <xsl:value-of select="$instructions"/> 1136 <xsl:text> >> $TEST_LOG 2>&1 || true
</xsl:text> 1158 <xsl:if test="not($eof-seen)"> 1159 <xsl:text> >> $TEST_LOG 2>&1 || true</xsl:text> 1160 </xsl:if> 1161 <xsl:text>
</xsl:text> 1137 1162 </xsl:when> 1138 1163 <xsl:otherwise> 1139 1164 <xsl:value-of select="$instructions"/> 1140 1165 <xsl:if test="not(contains($instructions, '>>')) and 1166 not($eof-seen) and 1141 1167 substring($instructions, 1142 1168 string-length($instructions)) != '\'">
Note:
See TracChangeset
for help on using the changeset viewer.