turn off scons cache mode in sgmldoc check
This commit is contained in:
parent
58cfef2258
commit
b792a32305
|
|
@ -8,12 +8,14 @@
|
||||||
from SCons.Script import ARGUMENTS,Touch,Delete
|
from SCons.Script import ARGUMENTS,Touch,Delete
|
||||||
import os
|
import os
|
||||||
import SCons.Action
|
import SCons.Action
|
||||||
|
import SCons.SConf
|
||||||
|
|
||||||
def checkForSGMLFMT(check):
|
def checkForSGMLFMT(check):
|
||||||
"""Returns True if we have working sgmlfmt executable for building documentation."""
|
"""Returns True if we have working sgmlfmt executable for building documentation."""
|
||||||
check.Message("Checking for working sgmlfmt... ")
|
check.Message("Checking for working sgmlfmt... ")
|
||||||
oldp=SCons.Action.print_actions
|
oldp=SCons.Action.print_actions
|
||||||
SCons.Action.print_actions = 0
|
SCons.Action.print_actions = 0
|
||||||
|
SCons.SConf.SetCacheMode('force')
|
||||||
check.env.Execute(Touch('empty'))
|
check.env.Execute(Touch('empty'))
|
||||||
check.env.Execute(Delete('empty.html'))
|
check.env.Execute(Delete('empty.html'))
|
||||||
rc,out=check.TryAction("sgmlfmt -d docbook -f html empty")
|
rc,out=check.TryAction("sgmlfmt -d docbook -f html empty")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user