summaryrefslogtreecommitdiff
path: root/templates/SConscript
blob: 2ec3442f48c4c8bec65150fcabaf40736627d253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- python -*-

import os
import glob
template_files = glob.glob('*.template.in')

Import('env install_prefix subst_dict')

template_build = []

for template in template_files:
    template_build = template_build + [env.SubstInFile (template[:-3], template, SUBST_DICT = subst_dict)]

Default(template_build)

env.Alias('install', env.Install(os.path.join(install_prefix, 'share/ardour/templates'), template_files))
env.Alias('tarball', env.Distribute (env['DISTTREE'], [ 'SConscript' ] + template_files))