Changeset 5c560cb for BOOK/testpart.xml
- Timestamp:
- Apr 23, 2011, 2:45:35 PM (14 years ago)
- Children:
- d10f81a
- Parents:
- 5f27dfa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/testpart.xml
r5f27dfa r5c560cb 21 21 </sect1> 22 22 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> 26 27 27 <para>Testing... 1.. 2.. 3..</para>28 <c:install> 28 29 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> 32 31 33 </sect1> 34 </c:package> 32 <c:command>patch -Np1 -i ../&bash-branch_update-patch;</c:command> 35 33 36 <c:package id="blarg" c:multibuild="true"> 37 <sect1> 38 <title>Blarg</title> 34 <c:para>Prepare the package for compilation</c:para> 39 35 40 <para>Testing... 1.. 2.. 3..</para> 36 <c:command>./configure -prefix=/usr -bindir=/bin \ 37 -without-bash-malloc -with-installed-readline</c:command> 41 38 42 <para c:multilib="true" c:bits="64">This is for 64bit multilib only</para>39 <c:para>Compile the package:</c:para> 43 40 44 <para c:bits="32,n32">Only 32,N32</para>41 <c:command>make</c:command> 45 42 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> 47 45 48 <screen c:bits="32"><userinput>cat << "EOF" 49 <literal>Another 50 32bit 51 Command</literal> 52 EOF</userinput></screen> 46 <c:para>Install the package:</c:para> 53 47 54 <para c:bits="64">Only 64</para>48 <c:command>make htmldir=/usr/share/doc/bash-&bash-version; install</c:command> 55 49 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> 57 52 58 <sect2> 59 <title>Hi There</title> 53 <c:command c:nodump="true">exec /bin/bash -login +h</c:command> 60 54 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> 62 60 63 <para c:bits="32" c:multilib="true">You will only see me on multilib 32bit</para> 64 </sect2> 61 </c:install> 65 62 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> 68 94 69 95 </chapter>
Note:
See TracChangeset
for help on using the changeset viewer.