From 4693a5af483dfe7f4c495b698035cc1bfc11a801 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Fri, 19 Sep 2008 21:00:45 +0000 Subject: =?UTF-8?q?Linux=20platforms=20---------------=20Patch=20to=20incl?= =?UTF-8?q?ude=20freedesktop=20icons=20in=20linux=20release=20builds,=20co?= =?UTF-8?q?ntributed=20by=20Ralf=20H=C3=B6lzemer=20(cheleb).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SConstruct | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/SConstruct b/SConstruct index 96b8c239c9c..0a959cc5b7b 100644 --- a/SConstruct +++ b/SConstruct @@ -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] -- cgit v1.2.3