2011-01-01 11:59:38 -05:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2013-04-06 11:37:16 -04:00
|
|
|
#
|
|
|
|
# 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
|
2015-11-29 11:52:42 -05:00
|
|
|
# to create the templates.
|
2013-04-06 11:37:16 -04:00
|
|
|
#
|
2015-11-29 11:52:42 -05:00
|
|
|
# Templates should be created by the user, not by us.
|
2013-04-06 11:37:16 -04:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2011-01-01 11:59:38 -05:00
|
|
|
import os
|
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
2011-01-01 11:59:38 -05:00
|
|
|
|
2011-01-01 12:13:32 -05:00
|
|
|
def configure(conf):
|
|
|
|
pass
|
|
|
|
|
2011-01-01 11:59:38 -05:00
|
|
|
def build(bld):
|
2011-04-22 18:15:21 -04:00
|
|
|
|
2013-04-06 11:37:16 -04:00
|
|
|
templates = bld.path.ant_glob('*/*.template')
|
2011-01-01 11:59:38 -05:00
|
|
|
for t in templates:
|
2013-04-06 11:37:16 -04:00
|
|
|
file_name = os.path.basename(t.srcpath())
|
|
|
|
dir_name = os.path.dirname(t.srcpath())
|
2012-06-08 09:24:34 -04:00
|
|
|
obj = bld(features = 'subst',
|
|
|
|
name = 'template',
|
|
|
|
source = [ t ],
|
|
|
|
target = [ os.path.join(dir_name, file_name) ],
|
2014-04-28 21:11:08 -04:00
|
|
|
install_path = os.path.join(bld.env['DATADIR'], os.path.join('templates', dir_name)))
|
2011-01-01 11:59:38 -05:00
|
|
|
|
2011-09-29 15:17:54 -04:00
|
|
|
def options(opt):
|
2011-01-01 11:59:38 -05:00
|
|
|
pass
|