From f850ca1ba26e931bf4287eb95cb46a014fe33ccd Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 23 Apr 2007 12:25:22 +0000 Subject: [PATCH] ardour_system.rc now has the same content as ardour.rc, to allow us to more easily add new variable/parameters when updating a user's configuration git-svn-id: svn://localhost/ardour2/trunk@1739 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 7 +++++++ ardour.rc.in | 2 ++ ardour_system.rc | 35 ++++++++++++++++++++++++++++++---- libs/ardour/audio_playlist.cc | 4 +++- libs/ardour/session_command.cc | 6 +++++- 5 files changed, 48 insertions(+), 6 deletions(-) diff --git a/SConstruct b/SConstruct index 9f7e915b3d..da2c6111cc 100644 --- a/SConstruct +++ b/SConstruct @@ -1076,7 +1076,13 @@ if not conf.CheckFunc('posix_memalign'): env = conf.Finish() +# generate the per-user and system rc files from the same source + rcbuild = env.SubstInFile ('ardour.rc','ardour.rc.in', SUBST_DICT = subst_dict) +sysrcbuild = env.SubstInFile ('ardour_system.rc','ardour.rc.in', SUBST_DICT = subst_dict) + +# add to the substitution dictionary + subst_dict['%VERSION%'] = ardour_version[0:3] subst_dict['%EXTRA_VERSION%'] = ardour_version[3:] subst_dict['%REVISION_STRING%'] = '' @@ -1092,6 +1098,7 @@ env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour env.Alias('install', env.Install(os.path.join(config_prefix, 'ardour2'), 'ardour.rc')) Default (rcbuild) +Default (sysrcbuild) # source tarball diff --git a/ardour.rc.in b/ardour.rc.in index a1d0d37177..79ef80799b 100644 --- a/ardour.rc.in +++ b/ardour.rc.in @@ -32,6 +32,7 @@