diff options
author | Taybin Rutkin <taybin@taybin.com> | 2005-09-26 02:00:22 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2005-09-26 02:00:22 +0000 |
commit | 077ed4c462f3a202825b49ac1a627a7a0bb45434 (patch) | |
tree | 47ec1f51ead63b973b5dbf033be010d27f9a9cdb /templates/SConscript | |
parent | 8ef3030ba1cb1d49022eb5d98e4e73dd87284b46 (diff) |
cross-platform template building.
git-svn-id: svn://localhost/trunk/ardour2@33 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'templates/SConscript')
-rw-r--r-- | templates/SConscript | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/SConscript b/templates/SConscript index 4269a1b988..2ec3442f48 100644 --- a/templates/SConscript +++ b/templates/SConscript @@ -2,8 +2,16 @@ import os import glob -template_files = glob.glob('*.template') +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) -Import('env install_prefix') 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)) |