Some comments fixes.

Trailing spaces cleam-up.
Removed obsolete code.
This commit is contained in:
Manuel Canales Esparcia 2006-07-30 08:58:26 +00:00
parent e840d275ce
commit 927254568a

View file

@ -120,7 +120,6 @@ chapter3_Makefiles() { # Initialization of the system
TARGET="pc-linux-gnu"; LOADER="ld-linux.so.2"
fi
# NOTE: We use the hlfs username and groupname also in HLFS
# If /home/hlfs is already present in the host, we asume that the
# hlfs user and group are also presents in the host, and a backup
# of their bash init files is made.
@ -211,9 +210,8 @@ chapter5_Makefiles() { # Bootstrap or temptools phase
# the names of the targets in the Makefile
chapter5="$chapter5 $this_script"
# Grab the name of the target (minus the -headers or -cross in the case of gcc
# and binutils in chapter 5)
name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' `
# Grab the name of the target
name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
# Adjust 'name'
case $name in
@ -260,7 +258,6 @@ chapter5_Makefiles() { # Bootstrap or temptools phase
# Remove the build directory(ies) except if the package build fails
# (so we can review config.cache, config.log, etc.)
# For Binutils the sources must be retained for some time.
if [ "$pkg_tarball" != "" ] ; then
wrt_remove_build_dirs "$name"
fi
@ -325,14 +322,6 @@ chapter6_Makefiles() { # sysroot or chroot build phase
# Grab the name of the target
name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@'`
#
# Sed replacement to fix some rm command that could fail.
# That should be fixed in the book sources.
#
case $name in
glibc) sed 's/rm /rm -f /' -i chapter06$N/$this_script ;;
esac
case $name in
uclibc) name="uClibc" ;;
esac
@ -390,7 +379,7 @@ chapter6_Makefiles() { # sysroot or chroot build phase
[[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name"
fi
# In the mount of kernel filesystems we need to set LFS and not to use chroot.
# In the mount of kernel filesystems we need to set HLFS and not to use chroot.
case "${this_script}" in
*kernfs*)
wrt_RunAsRoot "hlfs" "${this_script}" "${file}"