diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 10:42:38 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:46 -0400 |
commit | 3e5821428b08c1ab1b95472506f9427c7619e667 (patch) | |
tree | a0719dff209ec39c4788e71dbb0a3830257ac7f1 /gtk2_ardour/wscript | |
parent | 6ec731c5faccb2295a1599b2453866c28d7af61e (diff) |
install program-specific color files
Diffstat (limited to 'gtk2_ardour/wscript')
-rw-r--r-- | gtk2_ardour/wscript | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 139dce6442..ffbaa73031 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -814,8 +814,12 @@ def build(bld): # Default UI configuration bld.install_files(bld.env['CONFDIR'], 'default_ui_config') - # Color Themes - bld.install_files(os.path.join(bld.env['CONFDIR'], 'themes'), bld.path.ant_glob('themes/*.colors')) + # Color Themes. Find each color file for this program, strip the program name + # and install. + print "Colors: ", bld.path.ant_glob('themes/*-' + Options.options.program_name.lower() + '.colors') + for colors in bld.path.ant_glob ('themes/*-' + Options.options.program_name.lower() + '.colors'): + install_name = os.path.basename (colors.srcpath().replace ('-' + Options.options.program_name.lower(), '')) + bld.install_as (os.path.join(bld.env['CONFDIR'], 'themes', install_name), colors) # Default export stuff bld.install_files(os.path.join(bld.env['CONFDIR'], 'export'), bld.path.ant_glob('export/*.format')) |