]> git.lyx.org Git - features.git/commitdiff
Scons cleanup 5: config.h typo, do not have to make builddir by myself
authorBo Peng <bpeng@lyx.org>
Mon, 27 Aug 2007 03:30:58 +0000 (03:30 +0000)
committerBo Peng <bpeng@lyx.org>
Mon, 27 Aug 2007 03:30:58 +0000 (03:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19821 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConstruct

index 8147cee41941a935789303162a7fdd03b272e97e..3ab01eee82e0638b44f593e314dd8ed8bb416897 100644 (file)
@@ -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'),