Added echo_finished function.

This commit is contained in:
Manuel Canales Esparcia 2005-10-09 10:20:10 +00:00
parent 83f64dcbba
commit 898f47a966
2 changed files with 36 additions and 1 deletions

View file

@ -15,3 +15,35 @@ endef
define unpack
@cd $(LFS)$(SRC) ; tar -xvjf $(1) > /tmp/unpacked
endef
define echo_finished
@echo $(BRW)
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo $(BRW)Finished the build of $(BLUE)LFS-$(1)$(BRW)
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo -e \\t\\t$(RED)W A R N I N G$(BRW)
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo
@echo To be able to boot your new LFS system you need to follow
@echo the next steps:$(WHITE)
@echo
@echo -e \\t- Enter to the chroot using the command found
@echo -e \\tin chapter06/revisedchroot.html
@echo
@echo -e \\t- Set a password for the root user
@echo
@echo -e \\t- Set your local time zone. See chapter06/glibc.html
@echo
@echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
@echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
@echo -e \\t/etc/sysconfig/ifconfig.eth0/ipv4 and any other configuration
@echo -e \\tfile required to suit your needs.
@echo
@echo -e \\t- Set-up Grub. See chapter08/grub.html
@echo
@echo -e \\t- Unmount the filesystems. See chapter09/reboot.html
@echo $(BRW)
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BRW)
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$(WHITE)
endef

5
jhalfs
View file

@ -235,6 +235,9 @@ get_book() {
echo -ne "Using $BOOK as book's sources ...\n"
extract_commands
fi
# Set the canonical book version
cd $JHALFSDIR
VERSION=`grep "ENTITY version" $BOOK/general.ent | sed -e 's@<!ENTITY version "@@' -e 's@">@@'`
}
extract_commands() {
@ -767,7 +770,7 @@ EOF
(
cat << EOF
all: chapter4 chapter5 chapter6 chapter789
@echo -e "\n\tYour new LFS system has been successfully built"
@\$(call echo_finished,$VERSION)
chapter4: 020-creatingtoolsdir 021-addinguser 022-settingenvironment