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
This commit is contained in:
Tim Mayberry 2007-08-16 01:53:44 +00:00
parent f9a7388d7a
commit aede0a6e15
4 changed files with 21 additions and 8 deletions

View file

@ -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 = [

11
manual/SConscript Normal file
View file

@ -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)

View file

@ -10,13 +10,13 @@
<bookinfo>
<title>Ardour Manual</title>
<issuenum>1.0</issuenum>
<productnumber>2.0</productnumber>
<productnumber>&ARDOUR_VERSION;</productnumber>
<abstract>
<para>
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.
</para>
</abstract>
<isbn>

View file

@ -5,7 +5,7 @@
<!ENTITY BOOKID "&BOOKNAME;-&BOOKVERSION; (&BOOKDATE;)">
<!ENTITY ARDOUR_NAME "ardour">
<!ENTITY ARDOUR_VERSION "2.0">
<!ENTITY ARDOUR_VERSION "%VERSION%">
<!ENTITY ARDOUR_COMMAND "<command>ardour-&ARDOUR_VERSION;</command>">
<!ENTITY ARDOUR_APPLICATION "<application>&ARDOUR_NAME;</application>">
<!ENTITY COPYRIGHT_HOLDER "&ARDOUR_NAME; Foundation">