diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-11 20:38:42 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-11 20:38:42 +0000 |
commit | 73a91402cd0b12cf2cfe70f8fc4d4e4667fd259b (patch) | |
tree | 387106c75b4e1177306d3a80d76689808c07f68b /templates | |
parent | a03f3229f44742b579fc0dabf7a2b364e1a9b96b (diff) |
Save templates as directories with plugin state, if
there is any, and copy that state to sessions created
from those templates. Should fix #4525. Breaks
existing session templates, sorry; they can be fixed by
moving the .template file into a new directory with the
name of the template (minus the .template).
git-svn-id: svn://localhost/ardour2/branches/3.0@10982 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'templates')
-rw-r--r-- | templates/wscript | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/wscript b/templates/wscript index 7d01a73bb8..3f00b785ae 100644 --- a/templates/wscript +++ b/templates/wscript @@ -22,9 +22,11 @@ def build(bld): for t in templates: obj = bld(features = 'subst') obj.source = [ t ] - obj.target = [ os.path.basename(t.srcpath()).replace('.in', '') ] + dir_name = os.path.basename(t.srcpath()).replace('.template.in', '') + file_name = os.path.basename(t.srcpath()).replace('.in', '') + obj.target = [ os.path.join(dir_name, file_name) ] obj.dict = subst_dict - obj.install_path = os.path.join(bld.env['DATADIR'], 'ardour3', 'templates') + obj.install_path = os.path.join(bld.env['DATADIR'], 'ardour3', os.path.join('templates', dir_name)) def options(opt): pass |