From 2a1b4bff48b32891507c6dd83224c4b583a15dea Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 6 Apr 2013 11:37:16 -0400 Subject: do not include templates in a distributed version of ardour, they are useless. see the comments in templates/wscript on why this is so, and why this change was made --- templates/16 Tracks/16 Tracks.template.in | 617 --------------------- templates/2 Track/2 Track.template.in | 155 ------ templates/32 Tracks/32 Tracks.template.in | 881 ------------------------------ templates/4 Tracks/4 Tracks.template.in | 221 -------- templates/8 Tracks/8 Tracks.template.in | 353 ------------ templates/wscript | 29 +- 6 files changed, 20 insertions(+), 2236 deletions(-) delete mode 100644 templates/16 Tracks/16 Tracks.template.in delete mode 100644 templates/2 Track/2 Track.template.in delete mode 100644 templates/32 Tracks/32 Tracks.template.in delete mode 100644 templates/4 Tracks/4 Tracks.template.in delete mode 100644 templates/8 Tracks/8 Tracks.template.in (limited to 'templates') diff --git a/templates/16 Tracks/16 Tracks.template.in b/templates/16 Tracks/16 Tracks.template.in deleted file mode 100644 index 2b157dcb42..0000000000 --- a/templates/16 Tracks/16 Tracks.template.in +++ /dev/null @@ -1,617 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/2 Track/2 Track.template.in b/templates/2 Track/2 Track.template.in deleted file mode 100644 index bdf60c7f35..0000000000 --- a/templates/2 Track/2 Track.template.in +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/32 Tracks/32 Tracks.template.in b/templates/32 Tracks/32 Tracks.template.in deleted file mode 100644 index 5d7740bcd9..0000000000 --- a/templates/32 Tracks/32 Tracks.template.in +++ /dev/null @@ -1,881 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/4 Tracks/4 Tracks.template.in b/templates/4 Tracks/4 Tracks.template.in deleted file mode 100644 index c64d098ed9..0000000000 --- a/templates/4 Tracks/4 Tracks.template.in +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/8 Tracks/8 Tracks.template.in b/templates/8 Tracks/8 Tracks.template.in deleted file mode 100644 index fe0dd6f009..0000000000 --- a/templates/8 Tracks/8 Tracks.template.in +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/templates/wscript b/templates/wscript index dd60d401a5..8dff100d1a 100644 --- a/templates/wscript +++ b/templates/wscript @@ -1,5 +1,22 @@ #!/usr/bin/python +# +# Paul notes (April 2013) +# +# There seems to be little point in including templates with Ardour +# until or as long as the input connections of tracks depends on +# the user's hardware configuration. This makes any pre-existing +# templates potentially wrong/useless/annoying for anyone who +# uses a different hardware input configuration than was used +# to create the templates. +# +# Templates should be created by the user, not by us. +# +# I modified the code below, but have not tested it. For now +# this directory will be removed from the top level wscript's +# list of children. +# + import os top = '.' @@ -10,21 +27,15 @@ def configure(conf): def build(bld): - if bld.is_defined('COREAUDIO_SUPPORT'): - subst_dict = {'JACK_INPUT': 'coreaudio:Built-in Audio:in', 'JACK_OUTPUT': 'coreaudio:Built-in Audio:out'} - else: - subst_dict = {'JACK_INPUT': 'system:playback_','JACK_OUTPUT': 'system:capture_'} - - templates = bld.path.ant_glob('*/*.template.in') + templates = bld.path.ant_glob('*/*.template') for t in templates: - dir_name = os.path.basename(t.srcpath()).replace('.template.in', '') - file_name = os.path.basename(t.srcpath()).replace('.in', '') + file_name = os.path.basename(t.srcpath()) + dir_name = os.path.dirname(t.srcpath()) obj = bld(features = 'subst', name = 'template', source = [ t ], target = [ os.path.join(dir_name, file_name) ], install_path = os.path.join(bld.env['DATADIR'], 'ardour3', os.path.join('templates', dir_name))) - obj.__dict__.update(subst_dict) def options(opt): pass -- cgit v1.2.3