remove all remains of old sgmlformat SConstruct code
This commit is contained in:
parent
99341ea1d9
commit
b43ea3f23f
|
|
@ -10,7 +10,6 @@ PREFIX='/usr/local'
|
||||||
VERSION='2.8.1b26'
|
VERSION='2.8.1b26'
|
||||||
EFENCE=False
|
EFENCE=False
|
||||||
CLIENTS=True
|
CLIENTS=True
|
||||||
SGML=False
|
|
||||||
|
|
||||||
env = Environment(CPPPATH='#/include', LIBPATH=['/usr/lib','/usr/local/lib'])
|
env = Environment(CPPPATH='#/include', LIBPATH=['/usr/lib','/usr/local/lib'])
|
||||||
|
|
||||||
|
|
@ -60,7 +59,6 @@ from docdir import checkForUserDocdir
|
||||||
from mandir import autodetectMandir
|
from mandir import autodetectMandir
|
||||||
from clients import checkForBuildingClients
|
from clients import checkForBuildingClients
|
||||||
from sysconfdir import checkForUserSysconfdir
|
from sysconfdir import checkForUserSysconfdir
|
||||||
from sgmlformat import checkForSGMLFMT
|
|
||||||
from largefiles import enableLargeFiles
|
from largefiles import enableLargeFiles
|
||||||
from jade import checkDSSSLProcessor
|
from jade import checkDSSSLProcessor
|
||||||
from dsssl import findDocbookStylesheets
|
from dsssl import findDocbookStylesheets
|
||||||
|
|
@ -79,7 +77,6 @@ conf = Configure(env,{'checkForCCOption':checkForCCOption,
|
||||||
'autodetectMandir':autodetectMandir,
|
'autodetectMandir':autodetectMandir,
|
||||||
'checkForUserSysconfdir':checkForUserSysconfdir,
|
'checkForUserSysconfdir':checkForUserSysconfdir,
|
||||||
'checkForBuildingClients':checkForBuildingClients,
|
'checkForBuildingClients':checkForBuildingClients,
|
||||||
'checkForSGMLFMT':checkForSGMLFMT,
|
|
||||||
'checkDSSSLProcessor':checkDSSSLProcessor,
|
'checkDSSSLProcessor':checkDSSSLProcessor,
|
||||||
'findDocbookStylesheets':findDocbookStylesheets
|
'findDocbookStylesheets':findDocbookStylesheets
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
#
|
|
||||||
# SCons SGML Doc building check
|
|
||||||
#
|
|
||||||
# Version 1.0
|
|
||||||
# 10-Sep-2009
|
|
||||||
#
|
|
||||||
|
|
||||||
from SCons.Script import ARGUMENTS,Touch,Delete,Command
|
|
||||||
import os
|
|
||||||
import SCons.Action
|
|
||||||
import SCons.SConf
|
|
||||||
|
|
||||||
def checkForSGMLFMT(check):
|
|
||||||
"""Returns True if we have working sgmlfmt executable for building documentation."""
|
|
||||||
check.Message("Checking for working sgmlfmt... ")
|
|
||||||
oldp=SCons.Action.print_actions
|
|
||||||
SCons.Action.print_actions = 0
|
|
||||||
check.env.Execute(Touch('empty'))
|
|
||||||
check.env.Execute(Delete('empty.html'))
|
|
||||||
check.env.Execute(SCons.Action.CommandAction("sgmlfmt -d docbook -f html empty"))
|
|
||||||
if os.path.isfile('empty.html'):
|
|
||||||
rc = 0
|
|
||||||
else:
|
|
||||||
rc = 127
|
|
||||||
check.env.Execute(Delete(['empty','empty.html']))
|
|
||||||
SCons.Action.print_actions = oldp
|
|
||||||
if rc == 0:
|
|
||||||
check.Result(True)
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
check.Result(False)
|
|
||||||
return False
|
|
||||||
Loading…
Reference in New Issue
Block a user