Deploy Session-templates
authorRobin Gareus <robin@gareus.org>
Wed, 23 Aug 2017 21:54:51 +0000 (23:54 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 23 Aug 2017 21:55:00 +0000 (23:55 +0200)
templates/.stub [new file with mode: 0644]
templates/wscript [deleted file]
tools/linux_packaging/build
tools/osx_packaging/osx_build
wscript

diff --git a/templates/.stub b/templates/.stub
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/templates/wscript b/templates/wscript
deleted file mode 100644 (file)
index ab7e8d0..0000000
+++ /dev/null
@@ -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
index 7491ebdf0b227cf87123b26aea2985e72b4047f5..81b661812f3b2759a91a22daa8a6038912b6426b 100755 (executable)
@@ -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
index 3e9b587c332b2ed9df072d26febeabf92a63bed9..2f14b07beea8cd29e8017f41d318261ca644d408 100755 (executable)
@@ -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
diff --git a/wscript b/wscript
index c8ee117c8037883cff44ba092d4c53c196366b3f..fa0fb113bb97d63555571fb871af2b39abe0c8e6 100644 (file)
--- a/wscript
+++ b/wscript
@@ -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)