Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-02-12 15:29:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-12 15:29:39 +0300
commit606398fa2f422c7929778df0c5bf3ded2ad55d1f (patch)
tree39a8d377c70e6e741f91196108ede1dcc9022b3b /SConstruct
parentc3f4838109e5849ee0f3c1a51b50e8cc6bc7b958 (diff)
scons option - WITHOUT_BF_OVERWRITE_INSTALL
only use this if your not making packages for others.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 4 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct
index 8d0c1e36434..9d57b230770 100644
--- a/SConstruct
+++ b/SConstruct
@@ -192,11 +192,10 @@ if not env['BF_FANCY']:
# remove install dir so old and new files are not mixed.
# NOTE: only do the scripts directory for now, otherwise is too disruptive for developers
# TODO: perhaps we need an option (off by default) to not do this altogether...
-if not env['WITHOUT_BF_INSTALL']:
- scriptsDir = env['BF_INSTALLDIR']+os.sep+'.blender'+os.sep+'scripts'
- if os.path.isdir(scriptsDir):
- print B.bc.OKGREEN + "Clearing installed scripts directory%s: %s" % (B.bc.ENDC, os.path.abspath(scriptsDir))
- shutil.rmtree(scriptsDir)
+if not env['WITHOUT_BF_INSTALL'] and not env['WITHOUT_BF_OVERWRITE_INSTALL']:
+ if os.path.isdir(env['BF_INSTALLDIR']):
+ print B.bc.OKGREEN + "Clearing installation directory%s: %s" % (B.bc.ENDC, os.path.abspath(env['BF_INSTALLDIR']))
+ shutil.rmtree(env['BF_INSTALLDIR'])
SetOption('num_jobs', int(env['BF_NUMJOBS']))