+++ /dev/null
-#!/usr/bin/python
-
-#
-# Paul notes (April 2013)
-#
-# There seems to be little point in including templates with Ardour
-# until or as long as the input connections of tracks depends on
-# the user's hardware configuration. This makes any pre-existing
-# templates potentially wrong/useless/annoying for anyone who
-# uses a different hardware input configuration than was used
-# to create the templates.
-#
-# Templates should be created by the user, not by us.
-#
-# I modified the code below, but have not tested it. For now
-# this directory will be removed from the top level wscript's
-# list of children.
-#
-
-import os
-
-top = '.'
-out = 'build'
-
-def configure(conf):
- pass
-
-def build(bld):
-
- templates = bld.path.ant_glob('*/*.template')
- for t in templates:
- file_name = os.path.basename(t.srcpath())
- dir_name = os.path.dirname(t.srcpath())
- obj = bld(features = 'subst',
- name = 'template',
- source = [ t ],
- target = [ os.path.join(dir_name, file_name) ],
- install_path = os.path.join(bld.env['DATADIR'], os.path.join('templates', dir_name)))
-
-def options(opt):
- pass
mkdir -p $ExportFormats
mkdir -p $Panners
mkdir -p $Backends
-mkdir -p $Templates
mkdir -p $Shared/doc
# maybe set variables
cp "$x" $OSC
done
-# Templates
-#for f in $BUILD_ROOT/../templates/* ; do
-# if [ -d "$f" ] ; then
-# echo Template: $f ; cp -r "$f" $Templates ;
-# fi
-#done
+#Session templates
+cp -av $BUILD_ROOT/../templates $Templates
# ExportFormats
# got to be careful with names here
mkdir -p $Backends
mkdir -p $MidiMaps
mkdir -p $ExportFormats
-mkdir -p $Templates
mkdir -p $Frameworks/modules
mkdir -p $Etc
mkdir -p $MackieControl
cp "$f" $ExportFormats ;
done
-# Session and Route templates
-#for f in $BUILD_ROOT/../templates/* ; do
-# if [ -d "$f" ] ; then
-# cp -r "$f" $Templates ;
-# fi
-#done
+#Session templates
+cp -av $BUILD_ROOT/../templates $Templates
# MidiMaps
# got to be careful with names here
bld.install_files (bld.env['CONFDIR'], 'system_config')
+ bld.install_files (os.path.join (bld.env['DATADIR'], 'templates'), bld.path.ant_glob ('templates/**'))
+
if bld.env['RUN_TESTS']:
bld.add_post_fun(test)