13
0
livetrax/templates/SConscript
Taybin Rutkin 077ed4c462 cross-platform template building.
git-svn-id: svn://localhost/trunk/ardour2@33 d708f5d6-7413-0410-9779-e7cbd77b26cf
2005-09-26 02:00:22 +00:00

18 lines
508 B
Python

# -*- 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))