source: HLFS/functions@ 4845f38

experimental
Last change on this file since 4845f38 was 0170229, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Added base files from George's jhalfs-experimental-2 POC.
WARNING: This code is broken due files renaming.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1BOLD= "[0;1m"
2RED= "[1;31m"
3GREEN= "[0;32m"
4ORANGE= "[0;33m"
5BLUE= "[1;34m"
6WHITE= "[00m"
7
8define echo_message
9 @echo $(BOLD)
10 @echo --------------------------------------------------------------------------------
11 @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)
12 @echo --------------------------------------------------------------------------------$(WHITE)
13endef
14
15define unpack
16 @if [ -f $(HLFS)$(SRC)/$(1).bz2 ] ; then \
17 cd $(HLFS)$(SRC) ; tar -xvjf $(1).bz2 > /tmp/unpacked ; \
18 else \
19 cd $(HLFS)$(SRC) ; tar -xvzf $(1).gz > /tmp/unpacked ; \
20 fi ;
21endef
22
23define unpack2
24 @cd $(HLFS)$(SRC) ; /tools/bin/tar -xvf $(1) > /tmp/unpacked
25endef
26
27define echo_finished
28 @echo $(BOLD)
29 @echo --------------------------------------------------------------------------------
30 @echo $(BOLD) Finished the build of $(BLUE)HLFS-$(1)$(BOLD)
31 @echo --------------------------------------------------------------------------------
32 @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
33 @echo --------------------------------------------------------------------------------
34 @echo
35 @echo To be able to boot your new HLFS system you need to follow
36 @echo the next steps:$(WHITE)
37 @echo
38 @echo -e \\t- Enter to the chroot using the command found
39 @echo -e \\tin chapter06/revisedchroot.html
40 @echo
41 @echo -e \\t- Set a password for the root user
42 @echo
43 @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
44 @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
45 @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
46 @echo -e \\tany other configuration file required to suit your needs.
47 @echo
48 @echo -e \\t- Set-up Grub. See chapter08/grub.html
49 @echo
50 @echo -e \\t- Unmount the filesystems.
51 @echo
52 @echo If you are an experienced HLFS user, several of those steps can be
53 @echo skipped or done in a different way. But then, that is something
54 @echo that you already know and there is no need to discuss it here.
55 @echo $(BOLD)
56 @echo --------------------------------------------------------------------------------
57 @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
58 @echo --------------------------------------------------------------------------------$(WHITE)
59endef
Note: See TracBrowser for help on using the repository browser.