Remove \t from make messages, not compat with sh. Correct chroot extraction for CLFS to match book

This commit is contained in:
George Boudreau 2006-11-06 19:41:19 +00:00
parent c2af67091d
commit f4d9a48a21
3 changed files with 34 additions and 34 deletions

View file

@ -1170,7 +1170,7 @@ EOF
-e 's|\\$|&&|g' \ -e 's|\\$|&&|g' \
-e 's|exit||g' \ -e 's|exit||g' \
-e 's|$| -c|' \ -e 's|$| -c|' \
-e 's|"$$CLFS"|$(MOUNT_PT)|'\ -e 's|"$${CLFS}"|$(MOUNT_PT)|'\
-e 's|set -e||'` -e 's|set -e||'`
echo -e "CHROOT1= $chroot\n" >> $MKFILE echo -e "CHROOT1= $chroot\n" >> $MKFILE
fi fi
@ -1224,7 +1224,7 @@ mk_SYSTOOLS: mk_SUDO
ln -svf /tools/bin/bash bash; ln -sf bash sh; \\ ln -svf /tools/bin/bash bash; ln -sf bash sh; \\
sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\ sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\
fi; fi;
@sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chroot/082-createfiles @sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chroot/*-createfiles
@\$(call echo_CHROOT_request) @\$(call echo_CHROOT_request)
@\$(call echo_PHASE, CHROOT JAIL ) @\$(call echo_PHASE, CHROOT JAIL )
@( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT_JAIL") @( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT_JAIL")

View file

@ -72,8 +72,10 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<!-- Creating dirs and files --> <!-- Creating dirs and files -->
<exsl:document href="{$dirname}/{$order}-{$filename}" method="text"> <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
<!--
<xsl:choose> <xsl:choose>
<xsl:when test="@id='ch-system-changingowner' or <xsl:when test="@id='ch-system-changingowner' or
@id='ch-system-creatingdirs' or @id='ch-system-creatingdirs' or
@ -88,19 +90,15 @@
<xsl:text>#!/bin/sh&#xA;set -e&#xA;&#xA;</xsl:text> <xsl:text>#!/bin/sh&#xA;set -e&#xA;&#xA;</xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:if test="sect2[@role='installation']"> -->
<xsl:text>cd $PKGDIR&#xA;</xsl:text>
<xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'">
<xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1&#xA;</xsl:text>
</xsl:if>
</xsl:if>
<xsl:apply-templates select=".//para/userinput | .//screen"/> <xsl:apply-templates select=".//para/userinput | .//screen"/>
<xsl:if test="$testsuite='3' and @id='ch-tools-glibc'"> <xsl:if test="$testsuite='3' and @id='ch-tools-glibc'">
<xsl:copy-of select="//sect1[@id='ch-system-glibc']/sect2[2]/screen[@role='nodump']"/> <xsl:copy-of select="//sect1[@id='ch-system-glibc']/sect2[2]/screen[@role='nodump']"/>
<xsl:text>&#xA;</xsl:text> <xsl:text>&#xA;</xsl:text>
</xsl:if> </xsl:if>
<xsl:text>exit</xsl:text>
</exsl:document> </exsl:document>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>

View file

@ -13,11 +13,13 @@ OFF = ""
BOLD = "" BOLD = ""
REVERSE = "" REVERSE = ""
tab_ ='\t'
nl_ ='\n'
define echo_PHASE define echo_PHASE
@clear @clear
@echo $(BOLD)-------------------------------------------------------------------------------- @echo $(BOLD)--------------------------------------------------------------------------------
@echo -e \\t\\tExecuting $(BLUE)$(1)$(WHITE) scripts @echo $(tab_)$(tab_)Executing $(BLUE)$(1)$(WHITE) scripts
@echo $(BOLD)-------------------------------------------------------------------------------- @echo $(BOLD)--------------------------------------------------------------------------------
#echo $(WHITE) #echo $(WHITE)
endef endef
@ -135,39 +137,39 @@ define echo_finished
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD) @echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD)
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo -e \\t\\t$(RED)W A R N I N G$(BOLD) @echo $(tab_)$(tab_)$(RED)W A R N I N G$(BOLD)
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo @echo
@echo To be able to boot your new system you need to follow @echo To be able to boot your new system you need to follow
@echo the next steps:$(WHITE) @echo the next steps:$(WHITE)
@echo @echo
@echo -e \\t- Enter to the chroot using the command found @echo $(tab_)- Enter to the chroot using the command found
@echo -e \\tin the section -Entering the Chroot Environment- @echo $(tab_)in the section -Entering the Chroot Environment-
@echo -e \\texcept if building CLFS with METHOD=boot. @echo $(tab_)except if building CLFS with METHOD=boot.
@echo @echo
@echo -e \\t- Set a password for the root user. @echo $(tab_)- Set a password for the root user.
@echo @echo
@echo -e \\t- Edit or create /etc/fstab, /etc/hosts, /etc/sysconfig/clock, @echo $(tab_)- Edit or create /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
@echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network, @echo $(tab_)/etc/sysconfig/console, /etc/sysconfig/network,
@echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and @echo $(tab_)/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
@echo -e \\tany other configuration file required to suit your needs. @echo $(tab_)any other configuration file required to suit your needs.
@echo @echo
@echo -e \\t- Exit from the chroot. @echo $(tab_)- Exit from the chroot.
@echo @echo
@echo -e \\t- Set-up the boot loader, except if building CLFS with METHOD=boot. @echo $(tab_)- Set-up the boot loader, except if building CLFS with METHOD=boot.
@echo -e \\tYou can set-up the host bootloader or the new boot-loader @echo $(tab_)You can set-up the host bootloader or the new boot-loader
@echo -e \\tinstalled on the new system. @echo $(tab_)installed on the new system.
@echo -e \\tIf the last, you must to mount the virtual filesystems, re-enter @echo $(tab_)If the last, you must to mount the virtual filesystems, re-enter
@echo -e \\tthe chroot and be sure that /dev is populated with the @echo $(tab_)the chroot and be sure that /dev is populated with the
@echo -e \\trequired devices before configure the boot-loader. When ready, @echo $(tab_)required devices before configure the boot-loader. When ready,
@echo -e \\texit from the chroot and umount the filesystems @echo $(tab_)exit from the chroot and umount the filesystems
@echo @echo
@echo If you are an experienced LFS user, several of those steps can be @echo If you are an experienced LFS user, several of those steps can be
@echo skipped or done in a different way. But then, that is something @echo skipped or done in a different way. But then, that is something
@echo that you already know and there is no need to discuss it here. @echo that you already know and there is no need to discuss it here.
@echo $(BOLD) @echo $(BOLD)
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD) @echo $(tab_)$(tab_)$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
@echo --------------------------------------------------------------------------------$(WHITE) @echo --------------------------------------------------------------------------------$(WHITE)
endef endef
@ -176,22 +178,22 @@ define echo_boot_finished
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD) @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo -e \\t\\t$(RED)W A R N I N G$(BOLD) @echo $(tab_)$(tab_)$(RED)W A R N I N G$(BOLD)
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo @echo
@echo The build is not complete. Follow the next steps:$(WHITE) @echo The build is not complete. Follow the next steps:$(WHITE)
@echo @echo
@echo -e \\t- Edit or create $(MOUNT_PT)/etc/fstab @echo $(tab_)- Edit or create $(MOUNT_PT)/etc/fstab
@echo -e \\t and any other configuration file required to suit your needs. @echo $(tab_) and any other configuration file required to suit your needs.
@echo $(BOLD) @echo $(BOLD)
@echo $(BOLD)$(YELLOW) @echo $(BOLD)$(YELLOW)
@echo 1.If it is necessary, transfer the newly created partition to the target machine @echo 1.If it is necessary, transfer the newly created partition to the target machine
@echo 2.Boot the new partition. @echo 2.Boot the new partition.
@echo 3.Once you are logged in issue the following commands @echo 3.Once you are logged in issue the following commands
@echo -e \\t $(BOLD})cd /jhalfs @echo $(tab_) $(BOLD})cd /jhalfs
@echo -e \\t $(BOLD)make makesys @echo $(tab_) $(BOLD)make makesys
@echo The build process should resume. Follow any instructions that appear. @echo The build process should resume. Follow any instructions that appear.
@echo -------------------------------------------------------------------------------- @echo --------------------------------------------------------------------------------
@echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD) @echo $(tab_)$(tab_)$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
@echo --------------------------------------------------------------------------------$(WHITE) @echo --------------------------------------------------------------------------------$(WHITE)
endef endef