pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-Devel] [patch] Create 'build' dir before running the build


From: Andy Balaam
Subject: [Pingus-Devel] [patch] Create 'build' dir before running the build
Date: Wed, 23 Dec 2009 04:34:26 +0000
User-agent: Thunderbird 2.0.0.12 (X11/20080303)

Hi All,

Attached is an attempt at improving the scons build files so that it is
possible to build a clean svn checkout by simply typing:

scons configure

scons

Without this patch, you need:

mkdir build

before you start.

I experimented with putting the mkdir call in various places inside
SConscript, but I'm fairly sure it's too late by then, and you need it
in the SConstruct file itself, as in this patch.

Andy

Index: SConstruct
===================================================================
--- SConstruct  (revision 4102)
+++ SConstruct  (working copy)
@@ -1,5 +1,10 @@
 # -*- mode: python -*-
 
+import os, os.path
+
+if not os.path.isdir('build'):
+    os.mkdir('build')
+
 SConscript('SConscript', variant_dir='build', duplicate=0)
 
 # EOF #


reply via email to

[Prev in Thread] Current Thread [Next in Thread]