r2098 - jhalfs/trunk

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Oct 9 03:20:11 PDT 2005


Author: manuel
Date: 2005-10-09 04:20:10 -0600 (Sun, 09 Oct 2005)
New Revision: 2098

Modified:
   jhalfs/trunk/functions
   jhalfs/trunk/jhalfs
Log:
Added echo_finished function.

Modified: jhalfs/trunk/functions
===================================================================
--- jhalfs/trunk/functions	2005-10-09 08:46:38 UTC (rev 2097)
+++ jhalfs/trunk/functions	2005-10-09 10:20:10 UTC (rev 2098)
@@ -15,3 +15,35 @@
 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

Modified: jhalfs/trunk/jhalfs
===================================================================
--- jhalfs/trunk/jhalfs	2005-10-09 08:46:38 UTC (rev 2097)
+++ jhalfs/trunk/jhalfs	2005-10-09 10:20:10 UTC (rev 2098)
@@ -235,6 +235,9 @@
     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 @@
 (
     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
 




More information about the alfs-log mailing list