Changeset 5c560cb for BOOK/testpart.xml


Ignore:
Timestamp:
Apr 23, 2011, 2:45:35 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
d10f81a
Parents:
5f27dfa
Message:

This is the first part of the 2nd format to use as a simplification.
This format proposes using a completely custom stylesheet. Instead
of trying to merge together with docbook. The first attempt works it
is just extremely problematic. This is much easier, and it is the goal
anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/testpart.xml

    r5f27dfa r5c560cb  
    2121      </sect1>
    2222
    23       <c:package id="blah" c:multibuild="false">
    24         <sect1>
    25           <title><phrase>Blah</phrase></title>
     23<c:package id="ch-system-bash" c:multibuild="false">
     24  <c:title>Bash</c:title>
     25  <c:version>4.0.1</c:version>
     26  <c:description>The Bash package contains the Bourne-Again SHell.</c:description>
    2627
    27           <para>Testing... 1.. 2.. 3..</para>
     28  <c:install>
    2829
    29           <para c:bits="32">32</para>
    30           <para c:bits="n32">n32</para>
    31           <para c:bits="64">64</para>
     30    <c:para>Apply this patch</c:para>
    3231
    33         </sect1>
    34       </c:package>
     32<c:command>patch -Np1 -i ../&bash-branch_update-patch;</c:command>
    3533
    36       <c:package id="blarg" c:multibuild="true">
    37         <sect1>
    38           <title>Blarg</title>
     34    <c:para>Prepare the package for compilation</c:para>
    3935
    40           <para>Testing... 1.. 2.. 3..</para>
     36<c:command>./configure -prefix=/usr -bindir=/bin \
     37    -without-bash-malloc -with-installed-readline</c:command>
    4138
    42           <para c:multilib="true" c:bits="64">This is for 64bit multilib only</para>
     39    <c:para>Compile the package:</c:para>
    4340
    44           <para c:bits="32,n32">Only 32,N32</para>
     41<c:command>make</c:command>
    4542
    46 <screen c:bits="32"><userinput>echo 32bit Build</userinput></screen>
     43    <c:para>To test the results, issue:
     44    <c:command>make tests</c:command>.</c:para>
    4745
    48 <screen c:bits="32"><userinput>cat &lt;&lt; "EOF"
    49 <literal>Another
    50 32bit
    51 Command</literal>
    52 EOF</userinput></screen>
     46    <c:para>Install the package:</c:para>
    5347
    54           <para c:bits="64">Only 64</para>
     48<c:command>make htmldir=/usr/share/doc/bash-&bash-version; install</c:command>
    5549
    56 <screen c:bits="64"><userinput>echo 64bit Build</userinput></screen>
     50    <c:para>Run the newly compiled <c:command>bash</c:command> program (replacing
     51    the one that is currently being executed):</c:para>
    5752
    58           <sect2>
    59             <title>Hi There</title>
     53<c:command c:nodump="true">exec /bin/bash -login +h</c:command>
    6054
    61             <para>You should always see me</para>
     55    <c:note>
     56      <c:para>(note+warn) The parameters used make the <c:command>bash</c:command>
     57      process an interactive login shell and continue to disable hashing so
     58      that new programs are found as they become available.</c:para>
     59    </c:note>
    6260
    63             <para c:bits="32" c:multilib="true">You will only see me on multilib 32bit</para>
    64           </sect2>
     61  </c:install>
    6562
    66         </sect1>
    67       </c:package>
     63</c:package>
     64
     65
     66<c:package id="ch-system-test" c:multibuild="true">
     67  <c:title>TestPackage</c:title>
     68  <c:version>1.2.3</c:version>
     69  <c:description>The <c:strong>Test</c:strong> package contains a test.</c:description>
     70
     71  <c:install>
     72
     73    <c:para>Prepare the package for compilation</c:para>
     74
     75<c:command c:multilib="false">./configure --prefix=/usr</c:command>
     76<c:command c:multilib="true" c:bits="32">CC="gcc ${BUILD32}" ./configure --prefix=/usr</c:command>
     77<c:command c:multilib="true" c:bits="n32">CC="gcc ${BUILDN32}" ./configure --prefix=/usr</c:command>
     78<c:command c:multilib="true" c:bits="64">CC="gcc ${BUILD64}" ./configure --prefix=/usr</c:command>
     79
     80    <c:para>Compile the package:</c:para>
     81
     82<c:command>make</c:command>
     83
     84    <c:para>To test the results, issue:
     85    <c:command>make tests</c:command>.</c:para>
     86
     87    <c:para>Install the package:</c:para>
     88
     89<c:command>make install</c:command>
     90
     91  </c:install>
     92
     93</c:package>
    6894
    6995    </chapter>
Note: See TracChangeset for help on using the changeset viewer.