[yelp-tools] yelp-check: Use a plain string instead of read for inline xsl



commit db63d86f7f1e5c9c45e40ae6fdfaaa452ad1cc42
Author: Shaun McCance <shaunm gnome org>
Date:   Sun Oct 27 11:35:56 2013 -0400

    yelp-check: Use a plain string instead of read for inline xsl

 tools/yelp-check.in |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tools/yelp-check.in b/tools/yelp-check.in
index ad8a911..a5baa24 100755
--- a/tools/yelp-check.in
+++ b/tools/yelp-check.in
@@ -78,7 +78,7 @@ BEGIN {
 }'
 }
 
-read -r -d '' docbook_version <<'EOF'
+docbook_version='
 <xsl:stylesheet
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
     xmlns:db="http://docbook.org/ns/docbook";
@@ -90,15 +90,15 @@ read -r -d '' docbook_version <<'EOF'
       <xsl:value-of select="/db:*/@version"/>
     </xsl:when>
     <xsl:when test="/db:*">
-      <xsl:value-of select="'5.0'"/>
+      <xsl:text>5.0</xsl:text>
     </xsl:when>
     <xsl:otherwise>
-      <xsl:value-of select="'4'"/>
+      <xsl:text>4</xsl:text>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:template>
 </xsl:stylesheet>
-EOF
+'
 
 yelp_usage () {
     (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]