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:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 7491d6114e7..79d45f3c653 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1492,6 +1492,15 @@ def donsis(env, target, source):
rootstring += "\n\n"
nsis_cnt = string.replace(nsis_cnt, "[ROOTDIRCONTS]", rootstring)
+ # do delete items
+ delrootlist = []
+ for rootitem in rootdir:
+ if os.path.isdir(startdir + "\\dist\\" + rootitem) == 0:
+ delrootlist.append("Delete $INSTDIR\\" + rootitem)
+ delrootstring = string.join(delrootlist, "\n ")
+ delrootstring += "\n"
+ nsis_cnt = string.replace(nsis_cnt, "[DELROOTDIRCONTS]", delrootstring)
+
# do scripts
scriptlist = []
scriptdir = os.listdir(startdir + "\\dist\\.blender\\scripts")