Browse Source

Do not hardcode version in example

Did say 0.9-beta1 for 0.9 release for example.
So added the __VERSION__ macro.

Note that this may look ugly in the "git" branch or other
odd named versions but will match names if a dist tarball
was created from git master. But will be correct for official releases.

Okayed via jabber.
Jeremy C. Reed 10 years ago
parent
commit
95ebef4edf
1 changed files with 4 additions and 2 deletions
  1. 4 2
      doc/guide/quickstart.xml

+ 4 - 2
doc/guide/quickstart.xml

@@ -2,6 +2,8 @@
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
 <!ENTITY mdash  "&#x2014;" >
+<!ENTITY % version SYSTEM "version.ent">
+%version;
 ]>
 
   <chapter id="quickstart">
@@ -34,13 +36,13 @@
         <listitem>
           <para>
             Extract the tarball. For example:
-            <screen>$ <userinput>tar xvf kea-0.9-beta1.tar.gz</userinput></screen>
+            <screen>$ <userinput>tar xvf kea-&__VERSION__;.tar.gz</userinput></screen>
           </para>
         </listitem>
 
         <listitem>
           <para>Go into the source directory and run the configure script:
-            <screen>$ <userinput>cd kea-0.9-beta1</userinput>
+            <screen>$ <userinput>cd kea-&__VERSION__;</userinput>
 $ <userinput>./configure [your extra parameters]</userinput></screen>
           </para>
         </listitem>