2005-05-13 16:47:18 -04:00
|
|
|
# -*- python -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import glob
|
2005-09-25 22:00:22 -04:00
|
|
|
template_files = glob.glob('*.template.in')
|
2007-01-09 18:24:54 -05:00
|
|
|
files = glob.glob('*.template')
|
2005-09-25 22:00:22 -04:00
|
|
|
|
|
|
|
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)
|
2005-05-13 16:47:18 -04:00
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
env.Alias('install', env.Install(os.path.join(install_prefix, 'share', 'ardour2', 'templates'), files))
|
2005-09-25 22:04:36 -04:00
|
|
|
env.Alias('tarball', env.Distribute (env['DISTTREE'], [ 'SConscript' ] + template_build))
|