corrected check for sgmlfmt availability
This commit is contained in:
parent
54384d3aea
commit
9aea7394ae
|
|
@ -6,12 +6,18 @@
|
|||
#
|
||||
|
||||
from SCons.Script import ARGUMENTS,Touch,Delete
|
||||
import os
|
||||
|
||||
def checkForSGMLFMT(check):
|
||||
"""Returns True if we have working sgmlfmt executable for building documentation."""
|
||||
check.Message("Checking for working sgmlfmt... ")
|
||||
Touch('empty')
|
||||
Delete('empty.html')
|
||||
rc,out=check.TryAction("sgmlfmt -d docbook -f html empty")
|
||||
if os.path.isfile('empty.html'):
|
||||
rc = 0
|
||||
else:
|
||||
rc = 127
|
||||
Delete(['empty','empty.html'])
|
||||
if rc == 0:
|
||||
check.Result(True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user