remove all remains of old sgmlformat SConstruct code

This commit is contained in:
Radim Kolar 2014-09-07 21:32:19 +02:00
parent 99341ea1d9
commit b43ea3f23f
2 changed files with 0 additions and 35 deletions

View File

@ -10,7 +10,6 @@ PREFIX='/usr/local'
VERSION='2.8.1b26'
EFENCE=False
CLIENTS=True
SGML=False
env = Environment(CPPPATH='#/include', LIBPATH=['/usr/lib','/usr/local/lib'])
@ -60,7 +59,6 @@ from docdir import checkForUserDocdir
from mandir import autodetectMandir
from clients import checkForBuildingClients
from sysconfdir import checkForUserSysconfdir
from sgmlformat import checkForSGMLFMT
from largefiles import enableLargeFiles
from jade import checkDSSSLProcessor
from dsssl import findDocbookStylesheets
@ -79,7 +77,6 @@ conf = Configure(env,{'checkForCCOption':checkForCCOption,
'autodetectMandir':autodetectMandir,
'checkForUserSysconfdir':checkForUserSysconfdir,
'checkForBuildingClients':checkForBuildingClients,
'checkForSGMLFMT':checkForSGMLFMT,
'checkDSSSLProcessor':checkDSSSLProcessor,
'findDocbookStylesheets':findDocbookStylesheets
})

View File

@ -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