Linux platforms
authorKen Hughes <khughes@pacific.edu>
Fri, 19 Sep 2008 21:00:45 +0000 (21:00 +0000)
committerKen Hughes <khughes@pacific.edu>
Fri, 19 Sep 2008 21:00:45 +0000 (21:00 +0000)
---------------
Patch to include freedesktop icons in linux release builds, contributed by
Ralf H√∂lzemer (cheleb).

SConstruct

index 96b8c239c9c0f4a29b28c3d22c39177cc981b43c..0a959cc5b7bb4de8314376b55f0a148baf58c182 100644 (file)
@@ -422,6 +422,26 @@ if  env['OURPLATFORM']!='darwin':
             source=[dp+os.sep+f for f in df]
             scriptinstall.append(env.Install(dir=dir,source=source))
 
+#-- icons
+if env['OURPLATFORM']=='linux2':
+       iconlist = []
+       icontargetlist = []
+
+       for tp, tn, tf in os.walk('release/freedesktop/icons'):
+               if 'CVS' in tn:
+                       tn.remove('CVS')
+               if '.svn' in tn:
+                       tn.remove('.svn')
+               for f in tf:
+                       print ">>>", env['BF_INSTALLDIR'], tp, f
+                       iconlist.append(tp+os.sep+f)
+                       icontargetlist.append(env['BF_INSTALLDIR']+tp[19:]+os.sep+f)
+
+       iconinstall = []
+       for targetdir,srcfile in zip(icontargetlist, iconlist):
+               td, tf = os.path.split(targetdir)
+               iconinstall.append(env.Install(dir=td, source=srcfile))
+
 #-- plugins
 pluglist = []
 plugtargetlist = []
@@ -470,6 +490,8 @@ textinstall = env.Install(dir=env['BF_INSTALLDIR'], source=textlist)
 
 if  env['OURPLATFORM']=='darwin':
         allinstall = [blenderinstall, plugininstall, textinstall]
+elif env['OURPLATFORM']=='linux2':
+        allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall, iconinstall]
 else:
         allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall]