forked from bartvdbraak/blender
- small fix for the scons 'wininst' target, plus a typo correction :)
This commit is contained in:
parent
bbdfacfde3
commit
d2da4f7160
@ -1211,7 +1211,7 @@ def preparedist():
|
|||||||
shutil.copy("text/copyright.txt", "../dist/copyright.txt")
|
shutil.copy("text/copyright.txt", "../dist/copyright.txt")
|
||||||
shutil.copy("text/blender.html", "../dist/blender.html")
|
shutil.copy("text/blender.html", "../dist/blender.html")
|
||||||
shutil.copy("text/GPL-license.txt", "../dist/GPL-license.txt")
|
shutil.copy("text/GPL-license.txt", "../dist/GPL-license.txt")
|
||||||
shutil.copy("text/Python-license.txt", "../dist/Python-lisence.txt")
|
shutil.copy("text/Python-license.txt", "../dist/Python-license.txt")
|
||||||
|
|
||||||
reltext = "release_" + string.join(version.split("."), '') + ".txt"
|
reltext = "release_" + string.join(version.split("."), '') + ".txt"
|
||||||
shutil.copy("text/" + reltext, "../dist/" + reltext)
|
shutil.copy("text/" + reltext, "../dist/" + reltext)
|
||||||
@ -1507,11 +1507,13 @@ def donsis(env, target, source):
|
|||||||
|
|
||||||
# do language files
|
# do language files
|
||||||
langlist = []
|
langlist = []
|
||||||
|
langfiles = []
|
||||||
langdir = os.listdir(startdir + "\\dist\\.blender\\locale")
|
langdir = os.listdir(startdir + "\\dist\\.blender\\locale")
|
||||||
for langitem in langdir:
|
for langitem in langdir:
|
||||||
if os.path.isdir(startdir + "\\dist\\.blender\\locale\\" + langitem) == 1:
|
if os.path.isdir(startdir + "\\dist\\.blender\\locale\\" + langitem) == 1:
|
||||||
langlist.append("File " + startdir + "\\dist\\.blender\\locale\\" + langitem + "\\LC_MESSAGES\\blender.mo")
|
langfiles.append("SetOutPath $BLENDERHOME\\.blender\\locale\\" + langitem + "\\LC_MESSAGES")
|
||||||
langstring = string.join(langlist, "\n ")
|
langfiles.append("File " + startdir + "\\dist\\.blender\\locale\\" + langitem + "\\LC_MESSAGES\\blender.mo")
|
||||||
|
langstring = string.join(langfiles, "\n ")
|
||||||
langstring += "\n\n"
|
langstring += "\n\n"
|
||||||
nsis_cnt = string.replace(nsis_cnt, "[LANGUAGECONTS]", langstring)
|
nsis_cnt = string.replace(nsis_cnt, "[LANGUAGECONTS]", langstring)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user