Revision: 20878
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20878
Author:   kazanbas
Date:     2009-06-14 18:48:19 +0200 (Sun, 14 Jun 2009)

Log Message:
-----------
Make release/io dir installable on scons build.

Modified Paths:
--------------
    branches/soc-2009-kazanbas/SConstruct

Modified: branches/soc-2009-kazanbas/SConstruct
===================================================================
--- branches/soc-2009-kazanbas/SConstruct       2009-06-14 15:14:17 UTC (rev 
20877)
+++ branches/soc-2009-kazanbas/SConstruct       2009-06-14 16:48:19 UTC (rev 
20878)
@@ -468,28 +468,18 @@
                        dotblenderinstall.append(env.Install(dir=td, 
source=srcfile))
                
                if env['WITH_BF_PYTHON']:
-                       #-- .blender/scripts    
-                       scriptpath='release/scripts'
-                       for dp, dn, df in os.walk(scriptpath):
-                               if 'CVS' in dn:
-                                       dn.remove('CVS')
-                               if '.svn' in dn:
-                                       dn.remove('.svn')
-                               
dir=env['BF_INSTALLDIR']+'/.blender/scripts'+dp[len(scriptpath):]
-                               source=[dp+os.sep+f for f in df]
-                               
scriptinstall.append(env.Install(dir=dir,source=source))
+                       #-- .blender/scripts, .blender/ui, .blender/io
+                       scriptpaths=['release/scripts', 'release/ui', 
'release/io']
+                       for scriptpath in scriptpaths:
+                               for dp, dn, df in os.walk(scriptpath):
+                                       if 'CVS' in dn:
+                                               dn.remove('CVS')
+                                       if '.svn' in dn:
+                                               dn.remove('.svn')
+                                       
dir=env['BF_INSTALLDIR']+'/.blender/'+os.path.basename(scriptpath)+dp[len(scriptpath):]
+                                       source=[dp+os.sep+f for f in df]
+                                       
scriptinstall.append(env.Install(dir=dir,source=source))
 
-                       #-- .blender/ui 
-                       scriptpath='release/ui'
-                       for dp, dn, df in os.walk(scriptpath):
-                               if 'CVS' in dn:
-                                       dn.remove('CVS')
-                               if '.svn' in dn:
-                                       dn.remove('.svn')
-                               
dir=env['BF_INSTALLDIR']+'/.blender/ui'+dp[len(scriptpath):]
-                               source=[dp+os.sep+f for f in df]
-                               
scriptinstall.append(env.Install(dir=dir,source=source))
-
 #-- icons
 if env['OURPLATFORM']=='linux2':
        iconlist = []


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to