- small fix for the scons 'wininst' target, plus a typo correction :)
authorSimon Clitherow <aphex@nildram.co.uk>
Wed, 28 Jul 2004 17:24:37 +0000 (17:24 +0000)
committerSimon Clitherow <aphex@nildram.co.uk>
Wed, 28 Jul 2004 17:24:37 +0000 (17:24 +0000)
SConstruct

index 5c6f98f8969a0ed519380986eacbfdaa8a7d2037..db881b50eaa626c380bd9c1837bcedca3ecd7800 100644 (file)
@@ -1211,7 +1211,7 @@ def preparedist():
        shutil.copy("text/copyright.txt", "../dist/copyright.txt")
        shutil.copy("text/blender.html", "../dist/blender.html")
        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"
        shutil.copy("text/" + reltext, "../dist/" + reltext)
@@ -1507,11 +1507,13 @@ def donsis(env, target, source):
        
        # do language files
        langlist = []
+       langfiles = []
        langdir = os.listdir(startdir + "\\dist\\.blender\\locale")
        for langitem in langdir:
                if os.path.isdir(startdir + "\\dist\\.blender\\locale\\" + langitem) == 1:
-                       langlist.append("File " + startdir + "\\dist\\.blender\\locale\\" + langitem + "\\LC_MESSAGES\\blender.mo")
-       langstring = string.join(langlist, "\n  ")
+                       langfiles.append("SetOutPath $BLENDERHOME\\.blender\\locale\\" + langitem + "\\LC_MESSAGES")
+                       langfiles.append("File " + startdir + "\\dist\\.blender\\locale\\" + langitem + "\\LC_MESSAGES\\blender.mo")
+       langstring = string.join(langfiles, "\n  ")
        langstring += "\n\n"
        nsis_cnt = string.replace(nsis_cnt, "[LANGUAGECONTS]", langstring)