From 8786658ccad62923d52d05315d53da34646f7ffb Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Mon, 27 Aug 2007 03:30:58 +0000 Subject: [PATCH] Scons cleanup 5: config.h typo, do not have to make builddir by myself git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19821 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/SConstruct | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/development/scons/SConstruct b/development/scons/SConstruct index 8147cee419..3ab01eee82 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -336,19 +336,7 @@ if platform_name == 'win32': else: use_vc = False -# lyx will be built to $build/build_dir so it is possible -# to build multiple build_dirs using the same source -# $mode can be debug or release if env.has_key('build_dir') and env['build_dir'] is not None: - # create the directory if needed - if not os.path.isdir(env['build_dir']): - try: - os.makedirs(env['build_dir']) - except: - pass - if not os.path.isdir(env['build_dir']): - print 'Can not create directory', env['build_dir'] - Exit(3) env['BUILDDIR'] = env['build_dir'] else: # Determine the name of the build $mode @@ -753,7 +741,7 @@ print "Creating %s..." % boost_config_h # utils.createConfigFile(conf, config_file = boost_config_h, - config_pre = '''/* boost/config.h. Generated by SCons. */ + config_pre = r'''/* boost/config.h. Generated by SCons. */ /* -*- C++ -*- */ /* @@ -915,7 +903,7 @@ Frontend: # create config.h result = utils.createConfigFile(conf, config_file = config_h, - config_pre = '''/* config.h. Generated by SCons. */ + config_pre = r'''/* config.h. Generated by SCons. */ /* -*- C++ -*- */ /* @@ -1115,7 +1103,7 @@ if env['nls'] and included_gettext: # create intl/config.h result = utils.createConfigFile(conf, config_file = intl_config_h, - config_pre = '''/* intl/config.h. Generated by SCons. */ + config_pre = r'''/* intl/config.h. Generated by SCons. */ /* -*- C++ -*- */ /* @@ -1129,8 +1117,8 @@ if env['nls'] and included_gettext: * during the compilation. */ -#ifndef _CONFIG_H -#define _CONFIG_H +#ifndef _INTL_CONFIG_H +#define _INTL_CONFIG_H ''', headers = [ ('unistd.h', 'HAVE_UNISTD_H', 'c'), -- 2.39.5