[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16616] trunk/blender/SConstruct: Linux platforms

Ken Hughes khughes at pacific.edu
Fri Sep 19 23:00:46 CEST 2008


Revision: 16616
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16616
Author:   khughes
Date:     2008-09-19 23:00:45 +0200 (Fri, 19 Sep 2008)

Log Message:
-----------
Linux platforms
---------------
Patch to include freedesktop icons in linux release builds, contributed by
Ralf H?\195?\182lzemer (cheleb).

Modified Paths:
--------------
    trunk/blender/SConstruct

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2008-09-19 20:41:38 UTC (rev 16615)
+++ trunk/blender/SConstruct	2008-09-19 21:00:45 UTC (rev 16616)
@@ -422,6 +422,26 @@
             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 @@
 
 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]
 





More information about the Bf-blender-cvs mailing list