Changeset 2ec64b3
- Timestamp:
- 06/22/2004 07:48:30 PM (20 years ago)
- Branches:
- v5_1_1
- Parents:
- 673b0d8
- Files:
-
- 17 added
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
INSTALL
r673b0d8 r2ec64b3 10 10 11 11 ------------------------------------------------------------------------------- 12 If all you want to do is convert XML to HTML performthe following:12 If all you want to do is convert XML to HTML install the following: 13 13 14 14 * libxml2 … … 19 19 20 20 * DocBook DTD 21 - http://www.linuxfromscratch.org/blfs/view/cvs/pst/ DocBook.html21 - http://www.linuxfromscratch.org/blfs/view/cvs/pst/xml.html 22 22 23 23 * DocBook XSL Stylesheets 24 24 - http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html 25 25 26 * HTML Tidy - http://tidy.sourceforge.net/src/tidy_src.tgz 27 28 /bin/sh build/gnuauto/setup.sh && 29 ./configure --prefix=/usr && 30 make && 31 su -c "make install" 32 26 33 ------------------------------------------------------------------------------- 27 34 If you want to be able to convert the book into PDF as well, then you will need 28 35 the FOP package. This takes an XSL-FO file (created with libxslt which you 29 already installed) and converts it to PDF: 36 already installed) and converts it to PDF. Additionally you will need 37 the Java Advanced Imaging (JAI) library from 38 http://java.sun.com/products/java-media/jai/downloads/download-1_1_2.html 39 (you'll need either the JDK .bin or JRE .bin file dependent on your 40 particular Java setup). 30 41 31 42 - http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz … … 37 48 mv fop-0.20.5 fop 38 49 50 Install JAI by running: 51 52 chmod u+x /path/to/jai-1_1_2-lib-linux-i586-jdk.bin && 53 cd $JAVA_HOME && 54 /path/to/jai-1_1_2-lib-linux-i586-jdk.bin 55 39 56 Now set JAVA_HOME, FOP_HOME and PATH to values appropriate to your system. -
Makefile
r673b0d8 r2ec64b3 1 BASEDIR=~/lfs-book/ 1 BASEDIR=~/lfs-book 2 CHUNK_QUIET=0 3 PDF_OUTPUT=LFS-BOOK.pdf 4 PRINT_OUTPUT=LFS-BOOK-PRINTABLE.pdf 5 NOCHUNKS_OUTPUT=LFS-BOOK.html 2 6 3 7 lfs: 4 xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \ 5 stylesheets/lfs-chunked.xsl index.xml 8 xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \ 9 -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \ 10 index.xml 6 11 7 if [ ! -e $(BASEDIR) stylesheets ]; then \8 mkdir -p $(BASEDIR) stylesheets; \12 if [ ! -e $(BASEDIR)/stylesheets ]; then \ 13 mkdir -p $(BASEDIR)/stylesheets; \ 9 14 fi; 10 cp stylesheets/lfs.css $(BASEDIR) stylesheets15 cp stylesheets/lfs.css $(BASEDIR)/stylesheets 11 16 12 if [ ! -e $(BASEDIR) images ]; then \13 mkdir -p $(BASEDIR) images; \17 if [ ! -e $(BASEDIR)/images ]; then \ 18 mkdir -p $(BASEDIR)/images; \ 14 19 fi; 15 20 cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \ 16 $(BASEDIR) images17 cd $(BASEDIR) ; sed -i -e "s@../stylesheets@stylesheets@" \21 $(BASEDIR)/images 22 cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@" \ 18 23 index.html part1.html part2.html part3.html longindex.html 19 cd $(BASEDIR) ; sed -i -e "s@../images@images@g" \24 cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \ 20 25 index.html part1.html part2.html part3.html longindex.html 26 27 sh goTidy $(BASEDIR)/ 21 28 22 29 pdf: … … 24 31 index.xml 25 32 sed -i -e "s/inherit/all/" lfs.fo 26 fop.sh lfs.fo lfs.pdf 33 fop.sh lfs.fo $(PDF_OUTPUT) 34 35 print: 36 xsltproc --xinclude --nonet --output lfs-print.fo \ 37 stylesheets/lfs-print.xsl index.xml 38 sed -i -e "s/inherit/all/" lfs-print.fo 39 fop.sh lfs-print.fo $(PRINT_OUTPUT) 40 41 nochunks: 42 xsltproc --xinclude --nonet --output $(NOCHUNKS_OUTPUT) \ 43 stylesheets/lfs-nochunks.xsl index.xml 44 tidy -config tidy.conf $(NOCHUNKS_OUTPUT) || true 27 45 28 46 validate: -
README
r673b0d8 r2ec64b3 11 11 ------------- 12 12 13 BASEDIR=/path/to/output/location make 13 make BASEDIR=/path/to/output/location 14 14 15 15 -
chapter01/administrativa.xml
r673b0d8 r2ec64b3 24 24 25 25 <para>Several members of the LFS community offer assistance on our community 26 IRC (Internet Relay Chat) server. Before you utilize this mode of support, we26 IRC (Internet Relay Chat) network. Before you utilize this mode of support, we 27 27 ask that you've at least checked the LFS FAQ (see above) and the mailing list 28 28 archives (see below) for the answer to your question. You can find the IRC 29 server at <emphasis>irc.linuxfromscratch.org</emphasis> port 6667. The 30 support channel is named #LFS-support.</para> 29 network at <emphasis>irc.linuxfromscratch.org</emphasis> or 30 <emphasis>irc.linux-phreak.net</emphasis> port 6667. The support channel is 31 named #LFS-support.</para> 31 32 32 33 </sect2> -
chapter01/changelog.xml
r673b0d8 r2ec64b3 28 28 <listitem><para>gcc-3.3.3</para></listitem> 29 29 <listitem><para>gettext-0.14.1</para></listitem> 30 <listitem><para>glibc-2.3.3-lfs-5.1</para></listitem> 30 31 <listitem><para>grub-0.94</para></listitem> 31 32 <listitem><para>kbd-1.12</para></listitem> 32 33 <listitem><para>less-382</para></listitem> 33 <listitem><para>lfs-bootscripts-2.0. 4</para></listitem>34 <listitem><para>lfs-bootscripts-2.0.5</para></listitem> 34 35 <listitem><para>libtool-2.5.6</para></listitem> 35 36 <listitem><para>linux-2.4.26</para></listitem> … … 73 74 </itemizedlist> 74 75 </listitem> 76 77 <listitem><para>June 2, 2004 [matt]: Prologue - acknowledgments, Added Thomas 78 Reitelbach as the German translator</para></listitem> 79 <listitem><para>May 30, 2004 [matt]: Chapter 6 - vim, corrected the optional 80 command for invoking the testsuite</para></listitem> 81 <listitem><para>May 23, 2004 [matt]: Chapter 6 - kbd, removed the hardcoded path 82 to the kernel source directory</para></listitem> 83 <listitem><para>May 19, 2004 [matt]: Chapter 6 - mktemp, added instruction to 84 install tempfile wrapper</para></listitem> 85 <listitem><para>May 18, 2004 [manuel]: Chapter 3 - Updated the list of mirrors 86 for Glibc package. Fixed several textual bugs.</para></listitem> 87 88 <listitem><para>May 17th, 2004 [winkie]: Chapter 5 - Pass 89 <quote>AUTOCONF=no</quote> to the Glibc build. This prevents autoconf from 90 causing us problems.</para></listitem> 91 92 <listitem><para>May 16th, 2004 [jeremy]: Chapter 9 - Added a brief paragraph 93 to the rebooting system page to discuss packages which might be useful to 94 add prior to rebooting to the new system</para></listitem> 95 96 <listitem><para>May 15th, 2004 [matt]: Chapter 6 - Added a clearer warning that 97 make_devices needs to be customised</para></listitem> 98 99 <listitem><para>May 14th, 2004 [matt]: Chapter 3 - Added glibc's md5sum</para> 100 </listitem> 101 102 <listitem><para>May 14th, 2004 [matt]: Chapters 5 & 6 - Upgraded to 103 glibc-2.3.3-lfs-5.1</para></listitem> 104 105 <listitem><para>May 11th, 2004 [jeremy]: Prologue - Updated the list of 106 active staff in the project.</para></listitem> 107 108 <listitem><para>May 9th, 2004 [winkie]: Chapter 6 - Removed unused and broken 109 entries from <filename>nsswitch.conf</filename>.</para></listitem> 110 111 <listitem><para>May 7th, 2004 [matt]: Merged Manuel's lfs-xsl-0.9 patches</para> 112 </listitem> 113 <listitem><para>May 7th, 2004 [matt]: Fixed README error regarding invocation of 114 `make`</para></listitem> 115 <listitem><para>May 3rd, 2004: LFS 5.1-pre2 released</para></listitem> 75 116 76 117 <listitem><para>May 2nd, 2004 [matt]: Quoted chroot commands in chapter 6 (bug -
chapter03/packages.xml
r673b0d8 r2ec64b3 117 117 118 118 Make_devices (&makedev-version;) - 20 KB: 119 <ulink url="& lfs-root;~alex/make_devices-1.2.bz2"/>119 <ulink url="&http-down;"/> 120 120 121 121 Man (&man-version;) - 196 KB: … … 192 192 193 193 <note><para>2) As of this writing, the Glibc maintainers have decided in their 194 wisdom not to make available new release tarballs for download. The only way to 195 obtain the current Glibc release from pristine upstream sources is to pull it 196 from the Glibc CVS (Concurrent Versioning System) repository. The following commands will download the current 197 release and make a tarball from it:</para> 198 199 <screen><userinput>cvs -z 9 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \ 200 export -d glibc-2.3.3-20031202 -D "2003-12-02 UTC" libc 201 tar jcvf glibc-2.3.3-20031202.tar.bz2 glibc-2.3.3-20031202</userinput></screen> 202 203 <para>Alternatively, we've made our own tarball available which you can 204 download courtesy of the generous LFS mirror sites.</para> 205 206 <literallayout><ulink url="ftp://gaosu.rave.org/pub/linux/lfs/packages/conglomeration/&glibc-version;.tar.bz2"/> 207 <ulink url="http://lfs.mirror.intermedia.com.sg/packages/glibc/&glibc-version;.tar.bz2"/> 208 <ulink url="ftp://lfs.mirror.intermedia.com.sg/pub/lfs/glibc/&glibc-version;.tar.bz2"/> 209 <ulink url="http://dl.lfs.fredan.org/&glibc-version;.tar.bz2"/> 210 <ulink url="http://packages.lfs-es.org/&glibc-version;.tar.bz2"/> 211 <ulink url="http://mirror.averse.net/lfs-packages/&glibc-version;.tar.bz2"/> 212 <ulink url="ftp://mirror.averse.net/pub/lfs-packages/&glibc-version;.tar.bz2"/> 213 <ulink url="ftp://ftp.lfs-matrix.de/lfs/packages/conglomeration/&glibc-version;.tar.bz2"/></literallayout> 194 wisdom not to make available new release tarballs for download. As 195 such, the LFS toolchain team have provided a tarball of glibc sources 196 pulled from Glibc CVS (Concurrent Versioning System) and generated a 197 tarball from them, including patches where necessary.</para> 198 199 <para>We have made this tarball available courtesy of the generous LFS mirror 200 sites:</para> 201 202 <literallayout><ulink 203 url="ftp://gaosu.rave.org/pub/linux/lfs/packages/conglomeration/glibc-&glibc-version;.tar.bz2"/> 204 <ulink 205 url="ftp://lfs.mirror.intermedia.com.sg/pub/lfs/lfs-packages/conglomeration/glibc-&glibc-version;.tar.bz2"/> 206 <ulink url="http://packages.lfs-es.org/glibc/glibc-&glibc-version;.tar.bz2"/> 207 <ulink url="http://mirror.averse.net/lfs-packages/glibc-&glibc-version;.tar.bz2"/> 208 <ulink 209 url="ftp://mirror.averse.net/pub/lfs-packages/glibc-&glibc-version;.tar.bz2"/> 210 <ulink 211 url="ftp://ftp.lfs-matrix.de/lfs-packages/conglomeration/glibc-&glibc-version;.tar.bz2"/> 212 <ulink url="ftp://ftp.sg.linuxfromscratch.org/pub/lfs-packages/glibc-&glibc-version;.tar.bz2"/> 213 <ulink url="http://ftp.sg.linuxfromscratch.org/glibc-&glibc-version;.tar.bz2"/></literallayout> 214 <para>If you wish to verify the integrity of the tarball, its MD5 digest 215 is <computeroutput>cd11fabdf5162ad68329e7b28b308278</computeroutput>, which can 216 be verified using <command>md5sum</command>.</para> 214 217 </note> 215 218 -
chapter04/aboutsbus.xml
r673b0d8 r2ec64b3 32 32 listed may end up being somewhat understated. This is because the SBU is based 33 33 on the very first package, compiled with the old GCC, while the rest of the 34 system is compiled with the newer GCC- 3.3.2which is known to be34 system is compiled with the newer GCC-&gcc-version; which is known to be 35 35 approximately 30% slower.</para> 36 36 -
chapter04/creatingtoolsdir.xml
r673b0d8 r2ec64b3 8 8 <?dbhtml filename="creatingtoolsdir.html"?> 9 9 10 <para>All programs compiled in this chapter will be installed under <filename10 <para>All programs compiled in <xref linkend="chapter-temporary-tools"/> will be installed under <filename 11 11 class="directory">$LFS/tools</filename> to keep them separate from the 12 programs compiled in the next chapter. The programs compiled here are only12 programs compiled in <xref linkend="chapter-building-system"/>. The programs compiled here are only 13 13 temporary tools and won't be a part of the final LFS system and by keeping them 14 14 in a separate directory, we can later easily throw them away. This also 15 15 helps prevent them from ending up in your host's production directories 16 (easy to do in Chapter 5), which could be a very bad thing.</para>16 (easy to do in <xref linkend="chapter-temporary-tools"/>, which could be a very bad thing.</para> 17 17 18 18 <para>Later on you might wish to search through the binaries of your system to -
chapter05/binutils-pass1.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 1.0 SBU 17 &diskspace; 1 94MB</screen>17 &diskspace; 170 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/binutils.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/binutils-pass2.xml
r673b0d8 r2ec64b3 13 13 14 14 <screen>&buildtime; 1.5 SBU 15 &diskspace; 108MB</screen>15 &diskspace; 35.6 MB</screen> 16 16 17 17 -
chapter05/coreutils.xml
r673b0d8 r2ec64b3 29 29 <para>This package has an issue when compiled against versions of glibc 30 30 later than 2.3.2. Some of the Coreutils utilities (such as 31 (<command>head</command>, <command>tail</command> and <command>sort</command>)31 <command>head</command>, <command>tail</command> and <command>sort</command>) 32 32 will reject their traditional syntax, a syntax that has been in use for 33 33 approximately 30 years. This old syntax is so pervasive that compatibility -
chapter05/dejagnu.xml
r673b0d8 r2ec64b3 13 13 14 14 <screen>&buildtime; 0.1 SBU 15 &diskspace; 8.6MB</screen>15 &diskspace; 6.1 MB</screen> 16 16 17 17 <para>For its installation Dejagnu depends on: Bash, Binutils, Coreutils, Diffutils, -
chapter05/findutils.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 0.2 SBU 17 &diskspace; 7. 6MB</screen>17 &diskspace; 7.5 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/findutils.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/gawk.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 0.2 SBU 17 &diskspace; 1 7MB</screen>17 &diskspace; 16.9 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gawk.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/gcc-pass1.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 4.4 SBU 17 &diskspace; 300MB</screen>17 &diskspace; 411.7 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gcc.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/gcc-pass2.xml
r673b0d8 r2ec64b3 13 13 14 14 <screen>&buildtime; 11.0 SBU 15 &diskspace; 274MB</screen>15 &diskspace; 332.7 MB</screen> 16 16 17 17 -
chapter05/gettext.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 0.5 SBU 17 &diskspace; 55MB</screen>17 &diskspace; 67.6 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/glibc.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 11.8 SBU 17 &diskspace; 800MB</screen>17 &diskspace; 734.2 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/glibc.xml" xpointer="xpointer(/sect1/para[2])"/> … … 40 40 <para>Next, prepare Glibc for compilation:</para> 41 41 42 <screen><userinput>../glibc-&glibc-version; -20031202/configure --prefix=/tools \42 <screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \ 43 43 --disable-profile --enable-add-ons=linuxthreads \ 44 44 --with-binutils=/tools/bin --with-headers=/tools/include \ … … 87 87 <para>Compile the package:</para> 88 88 89 <screen><userinput>make </userinput></screen>89 <screen><userinput>make AUTOCONF=no</userinput></screen> 90 90 91 91 <para>Compilation is now complete. As mentioned earlier, we don't recommend … … 180 180 localedef -i en_US -f ISO-8859-1 en_US 181 181 localedef -i es_MX -f ISO-8859-1 es_MX 182 localedef -i fa_IR -f UTF-8 fa_IR 182 183 localedef -i fr_FR -f ISO-8859-1 fr_FR 183 184 localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro -
chapter05/kernel-headers.xml
r673b0d8 r2ec64b3 13 13 14 14 <screen>&buildtime; 0.1 SBU 15 &diskspace; 1 86MB</screen>15 &diskspace; 192.5 MB</screen> 16 16 17 17 -
chapter05/ncurses.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 0.7 SBU 17 &diskspace; 2 6MB</screen>17 &diskspace; 27.8 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/ncurses.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/sed.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 0.2 SBU 17 &diskspace; 5. 2MB</screen>17 &diskspace; 5.9 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/sed.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/tar.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 0.2 SBU 17 &diskspace; 10 MB</screen>17 &diskspace; 10.3 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/tar.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter05/tcl.xml
r673b0d8 r2ec64b3 13 13 14 14 <screen>&buildtime; 0.9 SBU 15 &diskspace; 2 3MB</screen>15 &diskspace; 22.7 MB</screen> 16 16 17 17 <para>Tcl installation depends on: Bash, Binutils, Coreutils, Diffutils, -
chapter05/texinfo.xml
r673b0d8 r2ec64b3 15 15 16 16 <screen>&buildtime; 0.2 SBU 17 &diskspace; 16 MB</screen>17 &diskspace; 16.3 MB</screen> 18 18 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/texinfo.xml" xpointer="xpointer(/sect1/para[2])"/> -
chapter06/e2fsprogs.xml
r673b0d8 r2ec64b3 66 66 <screen><userinput>make install</userinput></screen> 67 67 68 <para>Also install alsothe shared libraries:</para>68 <para>Also install the shared libraries:</para> 69 69 70 70 <screen><userinput>make install-libs</userinput></screen> -
chapter06/glibc.xml
r673b0d8 r2ec64b3 43 43 <para>Now prepare Glibc for compilation:</para> 44 44 45 <screen><userinput>../glibc-&glibc-version; -20031202/configure --prefix=/usr \45 <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \ 46 46 --disable-profile --enable-add-ons=linuxthreads \ 47 47 --libexecdir=/usr/lib --with-headers=/usr/include \ … … 122 122 <para>Finally, build the linuxthreads man pages:</para> 123 123 124 <screen><userinput>make -C ../glibc-&glibc-version; -20031202/linuxthreads/man</userinput></screen>124 <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen> 125 125 126 126 <para>And install these pages:</para> 127 127 128 <screen><userinput>make -C ../glibc-&glibc-version; -20031202/linuxthreads/man install</userinput></screen>128 <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen> 129 129 130 130 </sect2> … … 150 150 shadow: files 151 151 152 publickey: files153 154 152 hosts: files dns 155 153 networks: files 156 154 157 protocols: db files 158 services: db files 159 ethers: db files 160 rpc: db files 161 162 netgroup: db files 155 protocols: files 156 services: files 157 ethers: files 158 rpc: files 163 159 164 160 # End /etc/nsswitch.conf -
chapter06/introduction.xml
r673b0d8 r2ec64b3 61 61 <para>If you wish to keep track of which package installs what files, you may 62 62 want to use a package manager. For a general overview of package managers have 63 a look at <ulink url="&blfs-root;view/cvs/introduction/ pkgmgt.html"/>. And for64 a package management method specifically geared towards LFS see63 a look at <ulink url="&blfs-root;view/cvs/introduction/important.html"/>. And 64 for a package management method specifically geared towards LFS see 65 65 <ulink url="&hints-root;more_control_and_pkg_man.txt"/>.</para> 66 66 -
chapter06/kbd.xml
r673b0d8 r2ec64b3 74 74 75 75 <screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \ 76 /usr/src/linux-2.4.25/drivers/char/defkeymap.c</userinput></screen>76 <replaceable>[unpacked sources dir]</replaceable>/linux-&linux-version;/drivers/char/defkeymap.c</userinput></screen> 77 77 78 78 </sect2> -
chapter06/makedev.xml
r673b0d8 r2ec64b3 68 68 you are satisfied, run the script to create the device files:</para> 69 69 70 <warning><para>Failure to properly edit the <command>make_devices</command> to 71 match your systems's setup (eg. number of partitions) can lead to boot errors. 72 </para></warning> 73 70 74 <screen><userinput>cd /dev 71 75 ./make_devices</userinput></screen> -
chapter06/mktemp.xml
r673b0d8 r2ec64b3 48 48 <para>Now install it:</para> 49 49 50 <screen><userinput>make install</userinput></screen> 50 <screen><userinput>make install</userinput> 51 <userinput>make install-tempfile</userinput></screen> 51 52 52 53 </sect2> -
chapter06/vim.xml
r673b0d8 r2ec64b3 46 46 47 47 <para>To test the results, you can issue: 48 <userinput>make check</userinput>. However, this test suite outputs a lot of48 <userinput>make test</userinput>. However, this test suite outputs a lot of 49 49 seemingly garbage characters to the screen, and this can wreak havoc with the 50 50 settings of the current terminal. Therefore the running of the test suite here -
chapter08/kernel.xml
r673b0d8 r2ec64b3 73 73 to modules and to kernel configuration in general may be found in the 74 74 kernel documentation, which is found in the 75 <filename>linux- 2.4.25/Documentation</filename> directory. The75 <filename>linux-&linux-version;/Documentation</filename> directory. The 76 76 modules.conf man page and the kernel HOWTO at 77 77 <ulink url="http://www.tldp.org/HOWTO/Kernel-HOWTO.html"/> may also be of … … 131 131 <para>If you are going to keep the kernel source tree around, you may want to 132 132 run <userinput>chown -R 0:0</userinput> on the 133 <filename>linux- 2.4.25</filename> directory to ensure all files are133 <filename>linux-&linux-version;</filename> directory to ensure all files are 134 134 owned by user <emphasis>root</emphasis>.</para> 135 135 -
chapter09/reboot.xml
r673b0d8 r2ec64b3 9 9 10 10 <para>Now that all of the software has been installed, it is time to reboot 11 your computer. First exit from the chroot environment:</para> 11 your computer. However, you should be aware of a few things. The system you 12 have created in this book is quite minimal, and most likely will not have 13 the functionality you would need to be able to continue forward. By installing 14 a few extra packages from the BLFS book while still in our current chroot 15 environment, you can leave yourself in a much better position to continue on 16 once you reboot into your new LFS installation. Installing a text mode web 17 browser, such as Lynx, you can easily view the BLFS book in one virtual 18 terminal, while building packages in another. The GPM package will also allow 19 you to perform copy/paste actions in your virtual terminals. Lastly, if you 20 are in a situation where static IP configuration does not meet your networking 21 requirements, installing packages such as dhcpcd or ppp at this point might 22 also be useful.</para> 23 24 25 <para>Now that we have said that, lets move on to booting our shiny new LFS 26 installation for the first time! First exit from the chroot environment:</para> 12 27 13 28 <screen><userinput>logout</userinput></screen> -
general.ent
r673b0d8 r2ec64b3 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!ENTITY version " CVS-2004-05-02">3 <!ENTITY releasedate " May 2, 2004">4 <!ENTITY milestone "5.1 ">2 <!ENTITY version "&milestone;"> 3 <!ENTITY releasedate "June 5th, 2004"> 4 <!ENTITY milestone "5.1.1"> 5 5 6 6 <!ENTITY lfs-root "http://www.linuxfromscratch.org/"> … … 9 9 <!ENTITY hints-root "&lfs-root;hints/downloads/files/"> 10 10 <!ENTITY hints-index "&lfs-root;hints/list.html"> 11 <!ENTITY patches-root "&lfs-root;patches/lfs/ cvs/">11 <!ENTITY patches-root "&lfs-root;patches/lfs/&version;/"> 12 12 <!ENTITY wiki-root "http://wiki.linuxfromscratch.org/"> 13 13 <!ENTITY http-down "http://downloads.linuxfromscratch.org/"> … … 22 22 <!ENTITY binutils-version "2.14"> 23 23 <!ENTITY bison-version "1.875"> 24 <!ENTITY bootscripts-version "2.0. 4">24 <!ENTITY bootscripts-version "2.0.5"> 25 25 <!ENTITY bzip2-version "1.0.2"> 26 26 <!ENTITY coreutils-version "5.2.1"> … … 37 37 <!ENTITY gcc-version "3.3.3"> 38 38 <!ENTITY gettext-version "0.14.1"> 39 <!ENTITY glibc-version "2.3.3 ">39 <!ENTITY glibc-version "2.3.3-lfs-5.1"> 40 40 <!ENTITY grep-version "2.5.1"> 41 41 <!ENTITY groff-version "1.19"> -
prologue/acknowledgments.xml
r673b0d8 r2ec64b3 21 21 22 22 <listitem><para><ulink url="mailto:matthew@linuxfromscratch.org">Matthew 23 Burgess</ulink> <matthew@linuxfromscratch.org> -- LFS General Package24 maintainer, LFS Book editor.</para></listitem>23 Burgess</ulink> <matthew@linuxfromscratch.org> -- LFS Project Co-Leader, 24 LFS General Package maintainer, LFS Book editor.</para></listitem> 25 25 26 26 <listitem><para><ulink url="mailto:meerkats@bellsouth.net">Craig … … 28 28 Project logo creator.</para></listitem> 29 29 30 <listitem><para><ulink url="mailto:nathan@linuxfromscratch.org">Nathan 31 Coulson</ulink> <nathan@linuxfromscratch.org> -- LFS-Bootscripts 32 maintainer.</para></listitem> 33 30 34 <listitem><para><ulink url="mailto:jeroen@linuxfromscratch.org">Jeroen 31 35 Coumans</ulink> <jeroen@linuxfromscratch.org> -- Website developer, FAQ … … 36 40 leader, BLFS Book editor.</para></listitem> 37 41 42 <listitem><para><ulink url="mailto:manuel@linuxfromscratch.org">Manuel 43 Canales Esparcia</ulink> <manuel@linuxfromscratch.org> -- LFS Book 44 Editor (XML).</para></listitem> 45 38 46 <listitem><para><ulink url="mailto:alex@linuxfromscratch.org">Alex 39 47 Groenewoud</ulink> <alex@linuxfromscratch.org> -- LFS Book … … 60 68 organizer.</para></listitem> 61 69 70 <listitem><para><ulink url="mailto:alexander@linuxfromscratch.org">Alexander 71 Patrakov</ulink> <alexander@linuxfromscratch.org> -- LFS Book 72 Editor (internationalization/localization).</para></listitem> 73 62 74 <listitem><para><ulink url="mailto:scot@linuxfromscratch.org">Scot Mc 63 75 Pherson</ulink> <scot@linuxfromscratch.org> -- LFS NNTP gateway … … 74 86 <listitem><para><ulink url="mailto:greg@linuxfromscratch.org">Greg 75 87 Schafer</ulink> <greg@linuxfromscratch.org> -- Toolchain maintainer, 76 LFS Book editor, co-creator of PLFS.</para></listitem>88 Former LFS Book editor, co-creator of PLFS.</para></listitem> 77 89 78 90 <listitem><para><ulink url="mailto:tushar@linuxfromscratch.org">Tushar … … 82 94 <listitem><para><ulink url="mailto:jeremy@linuxfromscratch.org">Jeremy 83 95 Utley</ulink> <jeremy@linuxfromscratch.org> -- LFS Book editor, Bugzilla 84 maintainer.</para></listitem> 96 maintainer, LFS-Bootscripts Maintainer, LFS Server co-admin.</para></listitem> 97 98 <listitem><para><ulink url="mailto:winkie@linuxfromscratch.org">Zack 99 Winkles</ulink> <winkie@linuxfromscratch.org> -- LFS Book editor 100 (Emerging Technologies), LFS-Bootscripts co-maintainer.</para></listitem> 85 101 86 102 <listitem><para>Countless other people on the various LFS and BLFS … … 110 126 translation project.</para></listitem> 111 127 128 <listitem><para><ulink url="mailto:tr@erdfunkstelle.de">Thomas Reitelbach 129 </ulink> <tr@erdfunkstelle.de> -- German LFS translation project.</para> 130 </listitem> 131 112 132 </itemizedlist> 113 133 … … 117 137 <title>Mirror Maintainers</title> 118 138 119 <itemizedlist> 120 121 <listitem><para><ulink url="mailto:jason@dstc.edu.au">Jason Andrade</ulink> 122 <jason@dstc.edu.au> -- au.linuxfromscratch.org mirror.</para></listitem> 139 <sect3> 140 <title>North American Mirrors</title> 141 142 <itemizedlist> 143 144 <listitem><para><ulink url="mailto:scott@osuosl.org">Scott Kveton</ulink> 145 <scott@osuosl.org> -- lfs.oregonstate.edu mirror</para></listitem> 146 147 <listitem><para><ulink url="mailto:miha@xuy.biz">Mikhail Pastukhov</ulink> 148 <miha@xuy.biz> -- lfs.130th.net mirror.</para></listitem> 149 150 <listitem><para><ulink url="mailto:crash4o4@gameover.com">Frank Mancuso</ulink> 151 <crash4o4@gameover.com> -- lfs.crash404.com mirror.</para></listitem> 123 152 124 153 <listitem><para><ulink url="mailto:lost@l-w.net">William Astle</ulink> 125 154 <lost@l-w.net> -- ca.linuxfromscratch.org mirror.</para></listitem> 126 155 127 <listitem><para><ulink url="mailto:baque@cict.fr">Baque</ulink> 128 <baque@cict.fr> -- lfs.cict.fr mirror.</para></listitem> 156 <listitem><para><ulink url="mailto:jpolen@rackspace.com">Jeremy Polen</ulink> 157 <jpolen@rackspace.com> -- us2.linuxfromscratch.org 158 mirror.</para></listitem> 159 160 <listitem><para><ulink url="mailto:tim@idge.net">Tim Jackson</ulink> 161 <tim@idge.net> -- linuxfromscratch.idge.net mirror.</para></listitem> 162 163 <listitem><para><ulink url="mailto:jeremy@linux-phreak.net">Jeremy Utley 164 </ulink> <jeremy@linux-phreak.net> -- lfs.linux-phreak.net mirror. 165 </para></listitem> 166 167 </itemizedlist> 168 169 </sect3> 170 171 <sect3> 172 <title>South American Mirrors</title> 173 174 <itemizedlist> 175 176 <listitem><para><ulink url="mailto:manuel@linuxfromscratch.org">Manuel Canales 177 Esparcia</ulink> <manuel@linuxfromscratch.org> -- lfsmirror.lfs-es.org 178 mirror.</para></listitem> 179 180 <listitem><para><ulink url="mailto:sysop@mesi.com.ar">Andres Meggiotto</ulink> 181 <sysop@mesi.com.ar> -- lfs.mesi.com.ar mirror.</para></listitem> 182 183 <listitem><para><ulink url="mailto:ebf@aedsolucoes.com.br">Eduardo B. 184 Fonseca</ulink> <ebf@aedsolucoes.com.br> -- br.linuxfromscratch.org 185 mirror.</para></listitem> 186 187 </itemizedlist> 188 189 </sect3> 190 191 <sect3> 192 <title>European Mirrors</title> 193 194 <itemizedlist> 195 196 <listitem><para><ulink url="mailto:barna@siker.hu">Barna Koczka</ulink> 197 <barna@siker.hu> -- hu.linuxfromscratch.org mirror.</para></listitem> 198 199 <listitem><para><ulink url="http://www.mirror.ac.uk">UK Mirror Service</ulink> 200 -- linuxfromscratch.mirror.ac.uk mirror.</para></listitem> 201 202 <listitem><para><ulink url="mailto:Martin.Voss@ada.de">Martin Voss</ulink> 203 <Martin.Voss@ada.de> -- lfs.linux-matrix.net mirror.</para></listitem> 204 205 <listitem><para>Unknown -- mirror.vtx.ch mirror</para></listitem> 206 207 <listitem><para><ulink url="mailto:guido@primerelay.net">Guido Passet</ulink> 208 <guido@primerelay.net> -- nl.linuxfromscratch.org 209 mirror.</para></listitem> 210 211 <listitem><para><ulink url="mailto:baafie@planet.nl">Bastiaan Jacques</ulink> 212 <baafie@planet.nl> -- lfs.pagefault.net mirror</para></listitem> 213 214 <listitem><para><ulink url="mailto:lfs-mirror@linuxfromscratch.rave.org">Roel 215 Neefs</ulink> <lfs-mirror@linuxfromscratch.rave.org> -- linuxfromscratch.rave.org mirror.</para></listitem> 216 217 <listitem><para><ulink url="mailto:justin@jrknierim.de">Justin Knierim</ulink> 218 <justin@jrknierim.de> -- www.lfs-matrix.de mirror</para></listitem> 129 219 130 220 <listitem><para><ulink url="mailto:stevie@stevie20.de">Stephan Brendel</ulink> … … 132 222 mirror.</para></listitem> 133 223 134 <listitem><para><ulink url="mailto:ian@ichilton.co.uk">Ian Chilton</ulink> 135 <ian@ichilton.co.uk> -- us.linuxfromscratch.org, linuxfromscratch.co.uk 136 mirrors.</para></listitem> 224 <listitem><para>Unknown -- linuxfromscratch.je-zi.de 225 mirror</para></listitem> 226 227 <listitem><para>Unknown -- linuxfromscratch.tuxcenter.net 228 mirror</para></listitem> 229 230 <listitem><para><ulink url="mailto:hrx@hrxnet.de">Hagen Herrschaft</ulink> 231 <hrx@hrxnet.de> -- de.linuxfromscratch.org mirror.</para></listitem> 232 233 <listitem><para><ulink url="mailto:Antonin.Sprinzl@tuwien.ac.at">Antonin 234 Sprinzl</ulink> <Antonin.Sprinzl@tuwien.ac.at> -- at.linuxfromscratch.org 235 mirror.</para></listitem> 137 236 138 237 <listitem><para><ulink url="mailto:fredan-lfs@fredan.org">Fredrik 139 238 Danerklint</ulink> <fredan-lfs@fredan.org> -- se.linuxfromscratch.org 140 239 mirror.</para></listitem> 141 142 <listitem><para><ulink url="mailto:pgpkeys@aeternamtech.com">David D.W.143 Downey</ulink> <pgpkeys@aeternamtech.com> -- lfs.learnbyexample.com144 mirror.</para></listitem>145 146 <listitem><para><ulink url="mailto:ebf@aedsolucoes.com.br">Eduardo B.147 Fonseca</ulink> <ebf@aedsolucoes.com.br> -- br.linuxfromscratch.org148 mirror.</para></listitem>149 150 <listitem><para><ulink url="mailto:hrx@hrxnet.de">Hagen Herrschaft</ulink>151 <hrx@hrxnet.de> -- de.linuxfromscratch.org mirror.</para></listitem>152 153 <listitem><para><ulink url="mailto:tim@idge.net">Tim Jackson</ulink>154 <tim@idge.net> -- linuxfromscratch.idge.net mirror.</para></listitem>155 156 <listitem><para><ulink url="mailto:barna@siker.hu">Barna Koczka</ulink>157 <barna@siker.hu> -- hu.linuxfromscratch.org mirror.</para></listitem>158 159 <listitem><para><ulink url="mailto:lfs-mirror@linuxfromscratch.rave.org">Roel160 Neefs</ulink> -- linuxfromscratch.rave.org mirror.</para></listitem>161 162 <listitem><para><ulink url="mailto:sime@dot-sime.com">Simon Nicoll</ulink>163 <sime@dot-sime.com> -- uk.linuxfromscratch.org mirror.</para></listitem>164 165 <listitem><para><ulink url="mailto:ervin@activalink.net">Ervin S.166 Odisho</ulink> <ervin@activalink.net> -- lfs.activalink.net167 mirror.</para></listitem>168 169 <listitem><para><ulink url="mailto:guido@primerelay.net">Guido Passet</ulink>170 <guido@primerelay.net> -- nl.linuxfromscratch.org171 mirror.</para></listitem>172 173 <listitem><para><ulink url="mailto:miha@xuy.biz">Mikhail Pastukhov</ulink>174 <miha@xuy.biz> -- lfs.130th.net mirror.</para></listitem>175 176 <listitem><para><ulink url="mailto:jpolen@rackspace.com">Jeremy Polen</ulink>177 <jpolen@rackspace.com> -- us2.linuxfromscratch.org178 mirror.</para></listitem>179 180 <listitem><para><ulink url="http://www.mirror.ac.uk">UK Mirror Service</ulink>181 -- linuxfromscratch.mirror.co.uk mirror.</para></listitem>182 183 <listitem><para><ulink url="mailto:thomas@sofagang.dk">Thomas Skyt</ulink>184 <thomas@sofagang.dk> -- dk.linuxfromscratch.org mirror.</para></listitem>185 186 <listitem><para><ulink url="mailto:Antonin.Sprinzl@tuwien.ac.at">Antonin187 Sprinzl</ulink> <Antonin.Sprinzl@tuwien.ac.at> -- at.linuxfromscratch.org188 mirror.</para></listitem>189 190 <listitem><para><ulink url="mailto:dag@stenstad.net">Dag Stenstad</ulink>191 <dag@stenstad.net> for providing no.linuxfromscratch.org and192 <ulink url="mailto:ian@ichilton.co.uk">Ian Chilton</ulink> for running193 it.</para></listitem>194 240 195 241 <listitem><para><ulink url="mailto:archive@doc.cs.univ-paris8.fr">Parisian … … 197 243 www2.fr.linuxfromscratch.org mirror.</para></listitem> 198 244 199 <listitem><para><ulink url="mailto:highos@linuxfromscratch.org">Jesse200 Tie-Ten-Quee</ulink> <highos@linuxfromscratch.org> for providing and201 running the linuxfromscratch.org server.</para></listitem>202 203 245 <listitem><para><ulink url="mailto:velin@zadnik.org">Alexander Velin</ulink> 204 246 <velin@zadnik.org> -- bg.linuxfromscratch.org mirror.</para></listitem> 205 247 206 <listitem><para><ulink url="mailto:Martin.Voss@ada.de">Martin Voss</ulink> 207 <Martin.Voss@ada.de> -- lfs.linux-matrix.net mirror.</para></listitem> 248 <listitem><para><ulink url="mailto:dirk@securewebservices.co.uk">Dirk 249 Webster</ulink> <dirk@securewebservices.co.uk> -- 250 lfs.securewebservices.co.uk mirror</para></listitem> 251 252 <listitem><para><ulink url="mailto:thomas@sofagang.dk">Thomas Skyt</ulink> 253 <thomas@sofagang.dk> -- dk.linuxfromscratch.org mirror.</para></listitem> 254 255 <listitem><para><ulink url="mailto:sime@dot-sime.com">Simon Nicoll</ulink> 256 <sime@dot-sime.com> -- uk.linuxfromscratch.org mirror.</para></listitem> 257 258 </itemizedlist> 259 260 </sect3> 261 262 <sect3> 263 <title>Asian Mirrors</title> 264 265 <itemizedlist> 208 266 209 267 <listitem><para><ulink url="mailto:pyng@spam.averse.net">Pui Yong</ulink> … … 211 269 mirror.</para></listitem> 212 270 213 </itemizedlist> 271 <listitem><para><ulink url="mailto:stuart@althalus.me.uk">Stuart Harris</ulink> 272 <stuart@althalus.me.uk> -- lfs.mirror.intermedia.com.sg 273 mirror</para></listitem> 274 275 <listitem><para>Unknown -- lfs.mirror.if.itb.ac.id mirror</para></listitem> 276 277 </itemizedlist> 278 279 </sect3> 280 281 <sect3> 282 <title>Australian Mirrors</title> 283 284 <itemizedlist> 285 286 <listitem><para><ulink url="mailto:jason@dstc.edu.au">Jason Andrade</ulink> 287 <jason@dstc.edu.au> -- au.linuxfromscratch.org mirror.</para></listitem> 288 289 </itemizedlist> 290 291 </sect3> 214 292 215 293 </sect2> … … 297 375 298 376 <listitem><para><ulink url="mailto:highos@linuxfromscratch.org">Jesse 299 Tie-Ten-Quee</ulink> <highos@linuxfromscratch.org> for answering 377 Tie-Ten-Quee</ulink> <highos@linuxfromscratch.org> for temporarily 378 hosting the linuxfromscratch.org server, answering 300 379 countless questions on IRC and having a great deal of patience.</para></listitem> 301 380 -
prologue/organization.xml
r673b0d8 r2ec64b3 8 8 <?dbhtml filename="organization.html"?> 9 9 10 <para>This book is divided into the following fourparts:</para>10 <para>This book is divided into the following parts:</para> 11 11 12 12 <sect2> -
stylesheets/lfs-chunked.xsl
r673b0d8 r2ec64b3 1 <?xml version='1.0'?> 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> 4 Based on the original lfs-chunked.xsl created by Matthew Burgess --> 5 2 6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 7 xmlns="http://www.w3.org/1999/xhtml" 4 8 version="1.0"> 5 9 6 <!-- We use XHTML -->10 <!-- We use XHTML --> 7 11 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/chunk.xsl"/> 8 12 <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> 13 14 <!-- Including our others customized templates --> 15 <xsl:include href="xhtml/lfs-admon.xsl"/> 16 <xsl:include href="xhtml/lfs-index.xsl"/> 17 <xsl:include href="xhtml/lfs-legalnotice.xsl"/> 18 <xsl:include href="xhtml/lfs-mixed.xsl"/> 19 <xsl:include href="xhtml/lfs-navigational.xsl"/> 20 <xsl:include href="xhtml/lfs-titles.xsl"/> 21 <xsl:include href="xhtml/lfs-toc.xsl"/> 9 22 10 <!-- The CSS Stylesheet -->23 <!-- The CSS Stylesheet --> 11 24 <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/> 12 25 13 <!-- Include our customised templates --> 14 <xsl:include href="xhtml/lfs-toc.xsl"/> 15 <xsl:include href="xhtml/lfs-index.xsl"/> 16 17 <!-- Use graphics in admonitions --> 18 <xsl:param name="admon.graphics" select="1"/> 19 <xsl:param name="admon.graphics.path">../images/</xsl:param> 20 <xsl:param name="admon.graphics.extension" select="'.png'"/> 21 22 <!-- Legal Notice stuff --> 23 <xsl:param name="generate.legalnotice.link" select="1"/> 24 <xsl:template match="legalnotice" mode="titlepage.mode"> 25 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> 26 <xsl:choose> 27 <xsl:when test="$generate.legalnotice.link != 0"> 28 <xsl:variable name="filename"> 29 <xsl:call-template name="make-relative-filename"> 30 <xsl:with-param name="base.dir" select="''"/> 31 <xsl:with-param name="base.name" select="concat($base.dir, 'prologue/legalnotice.html')"/> 32 </xsl:call-template> 33 </xsl:variable> 34 <xsl:variable name="title"> 35 <xsl:apply-templates select="." mode="title.markup"/> 36 </xsl:variable> 37 <xsl:element name="a"> 38 <xsl:attribute name="href"> 39 <xsl:value-of select="'prologue/legalnotice.html'"/> 40 </xsl:attribute> 41 <xsl:copy-of select="$title"/> 42 </xsl:element> 43 <xsl:call-template name="write.chunk"> 44 <xsl:with-param name="filename" select="$filename"/> 45 <xsl:with-param name="quiet" select="$chunk.quietly"/> 46 <xsl:with-param name="content"> 47 <html> 48 <head> 49 <xsl:call-template name="system.head.content"/> 50 <xsl:call-template name="head.content"/> 51 <xsl:call-template name="user.head.content"/> 52 </head> 53 <body> 54 <xsl:call-template name="body.attributes"/> 55 <div class="{local-name(.)}"> 56 <xsl:apply-templates mode="titlepage.mode"/> 57 </div> 58 </body> 59 </html> 60 </xsl:with-param> 61 </xsl:call-template> 62 </xsl:when> 63 <xsl:otherwise> 64 <div class="{local-name(.)}"> 65 <xsl:apply-templates mode="titlepage.mode"/> 66 </div> 67 </xsl:otherwise> 68 </xsl:choose> 69 </xsl:template> 70 71 <!--TOC stuff--> 72 <xsl:param name="generate.toc"> 73 appendix toc 74 book toc,title,figure,table,example,equation 75 chapter nop 76 part toc 77 preface nop 78 qandadiv nop 79 qandaset nop 80 reference nop 81 sect1 nop 82 sect2 nop 83 sect3 nop 84 sect4 nop 85 sect5 nop 86 section nop 87 set nop 88 </xsl:param> 89 <xsl:param name="toc.section.depth">1</xsl:param> 90 <xsl:param name="toc.max.depth">3</xsl:param> 26 <!-- Dropping some unwanted style attributes --> 27 <xsl:param name="ulink.target" select="''"></xsl:param> 28 <xsl:param name="css.decoration" select="0"></xsl:param> 29 30 <!-- No XML declaration --> 31 <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/> 91 32 92 33 </xsl:stylesheet> -
stylesheets/lfs-pdf.xsl
r673b0d8 r2ec64b3 1 <?xml version='1.0'?> 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> 4 Based on the original lfs-pdf.xsl created by Matthew Burgess --> 5 2 6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 7 xmlns:fo="http://www.w3.org/1999/XSL/Format" 4 xmlns="http://www.w3.org/1999/xhtml"5 8 version="1.0"> 6 9 … … 9 12 <xsl:param name="fop.extensions" select="1"/> 10 13 <xsl:param name="draft.mode" select="'no'"/> 14 15 <!-- Including our others customized templates --> 16 <xsl:include href="pdf/lfs-index.xsl"/> 17 <xsl:include href="pdf/lfs-pagesetup.xsl"/> 18 11 19 <!-- Probably want to make the paper size configurable --> 12 20 <xsl:param name="paper.type" select="'A4'"/> 13 21 14 <!-- Include our customised templates --> 15 <xsl:include href="pdf/lfs-index.xsl"/> 22 <!-- Don't hyphenate --> 23 <xsl:param name="hyphenate">false</xsl:param> 24 <xsl:param name="alignment">left</xsl:param> 16 25 17 26 <!-- Font size --> … … 19 28 <xsl:param name="body.font.size">10pt</xsl:param> 20 29 21 <!-- Margins -->22 <xsl:param name=" page.margin.inner">1in</xsl:param>23 <xsl:param name=" page.margin.outer">0.5in</xsl:param>24 <xsl:param name="title.margin.left">-1pc</xsl:param>30 <!-- Graphics in admonitions --> 31 <xsl:param name="admon.graphics" select="1"/> 32 <xsl:param name="admon.graphics.path" 33 select="'/usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/'"/> 25 34 26 <!-- TOC stuff --> 35 <!-- Shade screen --> 36 <xsl:param name="shade.verbatim" select="1"/> 37 38 <!-- TOC generation --> 27 39 <xsl:param name="generate.toc"> 28 40 book toc … … 30 42 </xsl:param> 31 43 <xsl:param name="toc.section.depth">1</xsl:param> 32 <xsl:param name="generate.section.toc.level" select="-1"></xsl:param> 33 <xsl:param name="toc.indent.width" select="18"></xsl:param> 34 35 <!-- Force section1's onto a new page --> 36 <xsl:attribute-set name="section.level1.properties"> 37 <xsl:attribute name="break-after">page</xsl:attribute> 38 </xsl:attribute-set> 39 40 <!-- Columns in appendix --> 41 <xsl:param name="column.count.back" select="2"/> 42 43 <!-- Don't hyphenate --> 44 <xsl:param name="hyphenate">false</xsl:param> 45 <xsl:param name="alignment">left</xsl:param> 44 <xsl:param name="generate.section.toc.level" select="-1"/> 45 <xsl:param name="toc.indent.width" select="18"/> 46 46 47 47 <!-- Page number in Xref--> 48 48 <xsl:param name="insert.xref.page.number">yes</xsl:param> 49 <xsl:template match="xref" name="xref"> 50 <xsl:variable name="targets" select="key('id',@linkend)"/> 51 <xsl:variable name="target" select="$targets[1]"/> 52 <xsl:variable name="refelem" select="local-name($target)"/> 53 <xsl:call-template name="check.id.unique"> 54 <xsl:with-param name="linkend" select="@linkend"/> 55 </xsl:call-template> 56 <xsl:choose> 57 <xsl:when test="$refelem=''"> 58 <xsl:message> 59 <xsl:text>XRef to nonexistent id: </xsl:text> 60 <xsl:value-of select="@linkend"/> 61 </xsl:message> 62 <xsl:text>???</xsl:text> 63 </xsl:when> 64 <xsl:when test="@endterm"> 65 <fo:basic-link internal-destination="{@linkend}" 66 xsl:use-attribute-sets="xref.properties"> 67 <xsl:variable name="etargets" select="key('id',@endterm)"/> 68 <xsl:variable name="etarget" select="$etargets[1]"/> 69 <xsl:choose> 70 <xsl:when test="count($etarget) = 0"> 71 <xsl:message> 72 <xsl:value-of select="count($etargets)"/> 73 <xsl:text>Endterm points to nonexistent ID: </xsl:text> 74 <xsl:value-of select="@endterm"/> 75 </xsl:message> 76 <xsl:text>???</xsl:text> 77 </xsl:when> 78 <xsl:otherwise> 79 <xsl:apply-templates select="$etarget" mode="endterm"/> 80 </xsl:otherwise> 81 </xsl:choose> 82 </fo:basic-link> 83 </xsl:when> 84 <xsl:when test="$target/@xreflabel"> 85 <fo:basic-link internal-destination="{@linkend}" 86 xsl:use-attribute-sets="xref.properties"> 87 <xsl:call-template name="xref.xreflabel"> 88 <xsl:with-param name="target" select="$target"/> 89 </xsl:call-template> 90 </fo:basic-link> 91 </xsl:when> 92 <xsl:otherwise> 93 <fo:basic-link internal-destination="{@linkend}" 94 xsl:use-attribute-sets="xref.properties"> 95 <xsl:apply-templates select="$target" mode="xref-to"> 96 <xsl:with-param name="referrer" select="."/> 97 <xsl:with-param name="xrefstyle"> 98 <xsl:choose> 99 <xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0"> 100 <xsl:value-of select="@role"/> 101 </xsl:when> 102 <xsl:otherwise> 103 <xsl:value-of select="@xrefstyle"/> 104 </xsl:otherwise> 105 </xsl:choose> 106 </xsl:with-param> 107 </xsl:apply-templates> 108 </fo:basic-link> 109 </xsl:otherwise> 110 </xsl:choose> 111 <xsl:if test="not(starts-with(normalize-space(@xrefstyle), 'select:') != '' 112 and (contains(@xrefstyle, 'page') 113 or contains(@xrefstyle, 'Page'))) 114 and ( $insert.xref.page.number = 'yes' 115 or $insert.xref.page.number = '1') 116 or local-name($target) = 'para'"> 117 <fo:basic-link internal-destination="{@linkend}" 118 xsl:use-attribute-sets="xref.properties"> 119 <xsl:text>, p. </xsl:text> 120 <xsl:apply-templates select="$target" mode="page.citation"> 121 <xsl:with-param name="id" select="@linkend"/> 122 </xsl:apply-templates> 123 </fo:basic-link> 124 </xsl:if> 49 <xsl:template match="*" mode="page.citation"> 50 <xsl:param name="id" select="'???'"/> 51 <fo:inline keep-together.within-line="always"> 52 <xsl:text>[p.</xsl:text> 53 <fo:page-number-citation ref-id="{$id}"/> 54 <xsl:text>]</xsl:text> 55 </fo:inline> 125 56 </xsl:template> 126 57 -
stylesheets/lfs.css
r673b0d8 r2ec64b3 1 1 body { 2 2 font-weight: normal; 3 font-size: normal;3 font-size: medium; 4 4 font-family: verdana, tahoma, helvetica, arial, sans-serif; 5 5 text-align: left; 6 background: #fff; 6 7 } 7 8 8 div.navheader table{9 font-size: smaller;9 .toc ul, .index ul { 10 list-style: none; 10 11 } 11 12 12 div.navfooter table { 13 font-size: smaller; 14 } 15 16 div.navheader img { 17 border: medium none; 18 } 19 20 div.navfooter img { 21 border: medium none; 13 li.preface { 14 margin-left: 2.5em; 22 15 } 23 16 … … 69 62 } 70 63 71 div.warning { 72 border: 1px solid; 64 div.admonition { 65 border: medium solid; 66 width: 90%; 67 margin: .5em auto; 73 68 } 74 69 75 div.note { 76 border: 1px solid; 70 div.admonhead h3 { 71 display: inline; 72 margin-left: 1.5em; 77 73 } 78 74 79 div.important { 80 border: 1px solid; 81 } 82 83 div.caution { 84 border: 1px solid; 85 } 86 87 div.warning h3.title { 88 text-align: center 89 } 90 91 div.warning p { 92 padding-left: 0.2in 93 } 94 95 div.note { 96 padding-left: 0.2in 97 } 98 99 div.important { 100 padding-left: 0.2in 101 } 102 103 div.caution { 104 padding-left: 0.2in 75 div.admonbody { 76 margin: .5em; 105 77 } 106 78 … … 119 91 float: left; 120 92 } 121 122 .toc ul, .index ul, .navheader ul, .navfooter ul {123 list-style: none;124 }
Note:
See TracChangeset
for help on using the changeset viewer.