From 898f47a96630e99ec31bb97134c41f1b201bc40f Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 9 Oct 2005 10:20:10 +0000 Subject: [PATCH] Added echo_finished function. --- functions | 32 ++++++++++++++++++++++++++++++++ jhalfs | 5 ++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/functions b/functions index 84bb772..dec6f8d 100644 --- a/functions +++ b/functions @@ -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 diff --git a/jhalfs b/jhalfs index 0875b13..d83622c 100755 --- a/jhalfs +++ b/jhalfs @@ -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@@@'` } 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