]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Quiet down fixup-docbook-translated.rb when no intro exist.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 5 Dec 2019 07:52:26 +0000 (08:52 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 5 Dec 2019 07:52:26 +0000 (08:52 +0100)
fixup-docbook-translated.rb

index 648cf2671e5e768ad0e8f0b9951c7013ead72100..d04f250d48d0140585e0b2ad21a2520159dc3ff2 100644 (file)
@@ -21,12 +21,12 @@ def log(level,what)
   end
 end
 
-log 0, 'Including the %s version introduction' % lang
 if intro = File.open('extra/%s/intro_%s.xml' % [lang, lang],
                      'r').read rescue nil
+  log 0, 'Including the %s version introduction' % lang
   xml.search('preface').last.after( intro )
 else
-  log 0, ' -!- Introduction text not found or empty'
+  log 0, ' -!- Not including the %s introduction text'
 end
 
 if 'es' == lang