From b43ea3f23fbedf170b0a95265843768531723d7f Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Sun, 7 Sep 2014 21:32:19 +0200 Subject: [PATCH] remove all remains of old sgmlformat SConstruct code --- SConstruct | 3 --- site_scons/sgmlformat.py | 32 -------------------------------- 2 files changed, 35 deletions(-) delete mode 100644 site_scons/sgmlformat.py diff --git a/SConstruct b/SConstruct index afcfd25..6402741 100644 --- a/SConstruct +++ b/SConstruct @@ -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 }) diff --git a/site_scons/sgmlformat.py b/site_scons/sgmlformat.py deleted file mode 100644 index 9bbe39b..0000000 --- a/site_scons/sgmlformat.py +++ /dev/null @@ -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