add session-scope selection ops for Stripables
[ardour.git] / templates / wscript
1 #!/usr/bin/python
2
3 #
4 # Paul notes (April 2013)
5 #
6 # There seems to be little point in including templates with Ardour
7 # until or as long as the input connections of tracks depends on
8 # the user's hardware configuration. This makes any pre-existing
9 # templates potentially wrong/useless/annoying for anyone who
10 # uses a different hardware input configuration than was used
11 # to create the templates.
12 #
13 # Templates should be created by the user, not by us.
14 #
15 # I modified the code below, but have not tested it. For now
16 # this directory will be removed from the top level wscript's
17 # list of children.
18 #
19
20 import os
21
22 top = '.'
23 out = 'build'
24
25 def configure(conf):
26     pass
27
28 def build(bld):
29
30     templates = bld.path.ant_glob('*/*.template')
31     for t in templates:
32         file_name = os.path.basename(t.srcpath())
33         dir_name = os.path.dirname(t.srcpath())
34         obj = bld(features = 'subst',
35                   name = 'template',
36                   source = [ t ],
37                   target = [ os.path.join(dir_name, file_name) ],
38                   install_path = os.path.join(bld.env['DATADIR'], os.path.join('templates', dir_name)))
39
40 def options(opt):
41     pass