~ubuntu-branches/ubuntu/utopic/ardour3/utopic

« back to all changes in this revision

Viewing changes to templates/wscript

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler
  • Date: 2013-09-21 19:05:02 UTC
  • Revision ID: package-import@ubuntu.com-20130921190502-8gsftrku6jnzhd7v
Tags: upstream-3.4~dfsg
ImportĀ upstreamĀ versionĀ 3.4~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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'], 'ardour3', os.path.join('templates', dir_name)))
 
39
 
 
40
def options(opt):
 
41
    pass