From aede0a6e15ad7cf5d7fcfd858f1aa6ee5b148012 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 16 Aug 2007 01:53:44 +0000 Subject: [PATCH] Use scons to generate manual entities so the manual version is consistant with the Ardour version git-svn-id: svn://localhost/ardour2/trunk@2309 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 6 ++++-- manual/SConscript | 11 +++++++++++ manual/xml/book_info.xml | 10 +++++----- manual/xml/{entities.ent => entities.ent.in} | 2 +- 4 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 manual/SConscript rename manual/xml/{entities.ent => entities.ent.in} (96%) diff --git a/SConstruct b/SConstruct index d462a155cb..838ce00cd2 100644 --- a/SConstruct +++ b/SConstruct @@ -891,7 +891,8 @@ if env['SYSLIBS']: CPPPATH='#libs/appleutility') coredirs = [ - 'templates' + 'templates', + 'manual' ] subdirs = [ @@ -955,7 +956,8 @@ else: coredirs = [ 'libs/soundtouch', - 'templates' + 'templates', + 'manual' ] subdirs = [ diff --git a/manual/SConscript b/manual/SConscript new file mode 100644 index 0000000000..f8a5a12be1 --- /dev/null +++ b/manual/SConscript @@ -0,0 +1,11 @@ +# -*- python -*- + +Import('env ardour_version') + +manual_subst_dict = { } + +manual_subst_dict['%VERSION%'] = ardour_version + +entities = env.SubstInFile ('xml/entities.ent', 'xml/entities.ent.in', SUBST_DICT = manual_subst_dict); + +Default(entities) diff --git a/manual/xml/book_info.xml b/manual/xml/book_info.xml index 06e4cbfb05..061e2f0133 100644 --- a/manual/xml/book_info.xml +++ b/manual/xml/book_info.xml @@ -10,13 +10,13 @@ Ardour Manual 1.0 - 2.0 + &ARDOUR_VERSION; - This is the manual for &ARDOUR_NAME;, a digital audio workstation for - Linux and MacOSX. This manual is jointly created and edited by the - &ARDOUR_NAME; community. It may be published in paper format at some - time in the future. + This is the manual for &ARDOUR_NAME; version &ARDOUR_VERSION;, a + digital audio workstation for Linux and MacOSX. This manual is jointly + created and edited by the &ARDOUR_NAME; community. It may be published + in paper format at some time in the future. diff --git a/manual/xml/entities.ent b/manual/xml/entities.ent.in similarity index 96% rename from manual/xml/entities.ent rename to manual/xml/entities.ent.in index 0279d776b5..c8f8fe7a44 100644 --- a/manual/xml/entities.ent +++ b/manual/xml/entities.ent.in @@ -5,7 +5,7 @@ - + ardour-&ARDOUR_VERSION;"> &ARDOUR_NAME;">