]> granicus.if.org Git - docbook-dsssl/commitdiff
epubcheck 1.0.3 actually sets an exit code properly, so use that instead of doing...
authorKeith Fahlgren <abdelazer@users.sourceforge.net>
Tue, 3 Feb 2009 18:31:21 +0000 (18:31 +0000)
committerKeith Fahlgren <abdelazer@users.sourceforge.net>
Tue, 3 Feb 2009 18:31:21 +0000 (18:31 +0000)
xsl/epub/bin/lib/docbook.rb
xsl/epub/bin/spec/epub_realbook_spec.rb

index 3b622ae377ccb142742c250ff024df0cdb4d0329..d4d06aca6ca40665869be89ff1eae59959d5e40d 100755 (executable)
@@ -51,7 +51,7 @@ module DocBook
       cmd = "#{CHECKER} #{file}"
       output = `#{cmd} 2>&1`
 
-      if output == "No errors or warnings detected\n" # TODO wow.. this isn't fragile
+      if $?.to_i == 0
         return false
       else  
         STDERR.puts output if $DEBUG
index a57149f71e674c146e2eef51d2c6a3d8ccb5a340..f62f6f149c298c6791d23b452f5c64b00c175dde 100755 (executable)
@@ -14,7 +14,7 @@ require 'spec'
 
 require 'docbook'
 
-$DEBUG = false
+$DEBUG = true
 
 TESTDOCSDIR = File.expand_path(File.join(File.dirname(__FILE__), 'files'))