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>2015-03-12 14:14:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-12 15:52:48 +0300
commit2814039ee3e86105eb3dd978bc715b204407f91e (patch)
treef8d1159c65f8041458515f57d93a1556ed52c775 /SConstruct
parent4b3641ec99d964d9979b358f1ea0731f6bca613d (diff)
Remove version from readme, (replace on install)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct28
1 files changed, 28 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 29e22cb32a7..7305edfe036 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1167,9 +1167,37 @@ if env['OURPLATFORM']=='linuxcross':
textlist = []
texttargetlist = []
for tp, tn, tf in os.walk('release/text'):
+ tf.remove("readme.html")
for f in tf:
textlist.append(tp+os.sep+f)
+def readme_version_patch():
+ readme_src = "release/text/readme.html"
+ readme_dst = os.path.abspath(os.path.normpath(os.path.join(env['BF_BUILDDIR'], "readme.html")))
+
+ if not os.path.exists(readme_dst) or (os.path.getmtime(readme_dst) < os.path.getmtime(readme_src)):
+ f = open(readme_src, "r")
+ data = f.read()
+ f.close()
+
+ data = data.replace("BLENDER_VERSION", VERSION)
+ f = open(readme_dst, "w")
+ f.write(data)
+ f.close()
+
+ textlist.append(readme_dst)
+
+readme_version_patch()
+del readme_version_patch
+
+
+'''Command(
+ "release/text/readme.html"
+
+ )
+Command("file.out", "file.in", Copy(env['BF_INSTALLDIR'], "release/text/readme.html"))
+'''
+
# Font licenses
textlist.append('release/datafiles/LICENSE-bfont.ttf.txt')
if env['WITH_BF_INTERNATIONAL']: