Go to file
Xi Ruoyao 8f5b4a7910
gettext: Remove useless sed
The second expression

    's/xmlError *err/const &/'

does nothing, because " *" actually matches zero, one, or several white
spaces, not a white space and an asterisk.

And the first expression

    '/libxml\/xmlerror.h/i #include <libxml/xmlversion.h>'

includes a header, but we are not using anything in the header.

The intention of the sed command is fix a compatibility issue with
system libxml, but LFS does not have a system libxml so the fix is not
needed for LFS.  And, if we just fix up the second expression to

    's/xmlError \*err/const &/'

making it actually work, it'll cause a FTBFS with shipped libxml (used
in LFS because system does not have libxml), so we cannot easily fix it
either.

For now just remove the sed.  If gettext-0.23.1 isn't released before
LFS 12.3 freeze, we can either apply the upstream patch to make it work
for both shipped libxml and system libxml, or add the corrected sed with
"nodump" and some alarming texts.
2024-12-17 21:26:26 +08:00
appendices Fix extra spacing around some xml tags. 2024-10-25 11:37:55 -05:00
bootscripts Update to lfs-bootscripts-20240825 2024-08-25 15:37:38 +08:00
chapter01 Package updates. 2024-12-15 16:57:03 -06:00
chapter02 hostreq: Bump min-kernel to 5.4 2024-12-12 14:37:56 +08:00
chapter03 packages: Reword release tarball vs repo snapshot difference 2024-12-11 20:31:08 +08:00
chapter04 Typo 2024-08-29 10:02:14 -05:00
chapter05 Fix extra spacing around some xml tags. 2024-10-25 11:37:55 -05:00
chapter06 bash: Remove bash_cv_strtold_broken=no workaround 2024-11-08 21:04:37 +08:00
chapter07 Package and format updates. 2024-06-30 10:40:41 -05:00
chapter08 gettext: Remove useless sed 2024-12-17 21:26:26 +08:00
chapter09 network: Fix the /etc/hosts line for local machine 2024-09-26 01:12:54 +08:00
chapter10 kernel: Remove outdated note not to update kernel API headers 2024-12-13 12:48:43 +08:00
chapter11 English grammar fixes 2024-12-06 17:05:02 +08:00
images Adding some new png files to supoprt alternate css 2015-08-10 17:53:57 +00:00
part3intro English grammar fixes 2024-12-06 17:05:02 +08:00
prologue standards: Add extension names to libg{d,t}k-x11-2.0 to be consistent 2024-10-06 03:32:51 +08:00
stylesheets Fix typos 2024-08-25 15:37:34 +08:00
udev-lfs Typos on comments. 2024-08-23 14:01:06 -05:00
.gitignore build: Add "make dist" 2023-09-13 14:10:38 +08:00
aux-file-data.sh Typos on comments. 2024-08-23 14:01:06 -05:00
gen-changelog.py gen-changelog: Handles holding tickets 2023-12-31 01:09:57 +08:00
general.ent hostreq: Bump min-kernel to 5.4 2024-12-12 14:37:56 +08:00
git-version.sh Fix typos 2024-08-25 15:37:34 +08:00
index.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
INSTALL doc: correct the URL of BLFS docbook-xml-4.5 page 2022-02-23 02:10:17 +08:00
lfs-latest-git.php Update currency for python modules. 2024-12-08 11:40:14 -06:00
lfs-latest.php currency: Remove stale lfs-latest.php and symlink lfs-latest-git.php to it 2023-09-03 03:30:43 +08:00
make-aux-files.sh Fix make-aux-file for lfs-bootscript entities 2021-09-22 23:21:31 +02:00
Makefile build: Use -r for git ls-tree in make dist 2024-08-12 19:20:16 +08:00
obfuscate.sh Fix small typos 2023-08-03 22:55:17 +08:00
packages.ent Fix vim size 2024-12-16 11:54:48 -06:00
patches.ent Package updates. 2024-11-08 13:24:58 -06:00
pdf-fixups.sh Fix pdf presentation issues and some misc issues 2022-03-14 13:08:40 -05:00
process-scripts.sh Remove eol spaces 2021-09-07 23:10:29 +02:00
README Remove eol spaces 2021-09-07 23:05:44 +02:00
tidy.conf Generate utf-8 encoded html 2023-11-23 20:59:52 +01:00

LFS Book README

This document is meant to instruct the user on how to convert the book's XML
source to other formats (e.g. HTML, PDF, PS and TXT).  First, if you have not
already done so, please read the INSTALL file for instructions on how to install
the required software.  If you have already completed the steps outlined in the
INSTALL file, then continue reading for examples how to convert these files into
various other formats.

In all examples, setting the parameter REV=systemd is needed to build the
systemd version of the book.

XML to XHTML:
-------------
make BASEDIR=/path/to/output/location


XML to single file XHTML (nochunks):
------------------------------------
make BASEDIR=/path/to/output/location nochunks

XML to TXT
----------
Follow the instructions for nochunks and then run:
lynx -dump /path/to/nochunks >/path/to/output

XML to PDF:
-----------
make BASEDIR=/path/to/output/location pdf