Deploy Session-templates

This commit is contained in:
Robin Gareus 2017-08-23 23:54:51 +02:00
parent 74fada443d
commit 5cffe7fa84
5 changed files with 6 additions and 55 deletions

0
templates/.stub Normal file
View File

View File

@ -1,41 +0,0 @@
#!/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

View File

@ -231,7 +231,6 @@ mkdir -p $OSC
mkdir -p $ExportFormats
mkdir -p $Panners
mkdir -p $Backends
mkdir -p $Templates
mkdir -p $Shared/doc
# maybe set variables
@ -398,12 +397,8 @@ for x in $BUILD_ROOT/../osc/*.preset ; do
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

View File

@ -180,7 +180,6 @@ mkdir -p $Panners
mkdir -p $Backends
mkdir -p $MidiMaps
mkdir -p $ExportFormats
mkdir -p $Templates
mkdir -p $Frameworks/modules
mkdir -p $Etc
mkdir -p $MackieControl
@ -349,12 +348,8 @@ for f in $BUILD_ROOT/../export/*.preset $BUILD_ROOT/../export/*.format ; do
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

View File

@ -1351,6 +1351,8 @@ def build(bld):
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)