source: common/makefile-functions@ 15787a3

1.0 2.3 2.3.x 2.4 ablfs ablfs-more legacy new_features trunk
Last change on this file since 15787a3 was 843c479, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Now the progress bar is a pretty time counter.

  • Property mode set to 100644
File size: 3.9 KB
Line 
1
2# $Id$
3
4BOLD= "[0;1m"
5RED= "[1;31m"
6GREEN= "[0;32m"
7ORANGE= "[0;33m"
8BLUE= "[1;34m"
9WHITE= "[00m"
10CURSOR_ON= "[?25h"
11
12define echo_message
13 @echo $(BOLD)
14 @echo --------------------------------------------------------------------------------
15 @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)
16 @echo --------------------------------------------------------------------------------$(WHITE)
17endef
18
19define unpack
20 @cd $(MOUNT_PT)$(SRC) && \
21 tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
22endef
23
24define unpack2
25 @cd $(MOUNT_PT)$(SRC) && \
26 /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
27endef
28
29define unpack3
30 @cd $(SRC) && \
31 tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
32endef
33
34define echo_report
35 @echo
36 @echo $(BOLD) The report file $(BLUE)$(1)$(BOLD) has been created
37 @echo
38 @echo ${WHITE}Please send the $(BOLD)$(MOUNT_PT)/jhalfs/$(1)$(WHITE)
39 @echo file to $(BOLD)manuel@linuxfromscratch.org$(WHITE)
40 @echo
41 @echo That will help us to keep more accurate SBU and
42 @echo disk usage values into the book. Thanks.
43endef
44
45define echo_finished
46 @echo $(BOLD)
47 @echo --------------------------------------------------------------------------------
48 @echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD)
49 @echo --------------------------------------------------------------------------------
50 @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
51 @echo --------------------------------------------------------------------------------
52 @echo
53 @echo To be able to boot your new system you need to follow
54 @echo the next steps:$(WHITE)
55 @echo
56 @echo -e \\t- Enter to the chroot using the command found
57 @echo -e \\tin the section -Entering the Chroot Environment-
58 @echo -e \\texcept if building CLFS with METHOO=boot.
59 @echo
60 @echo -e \\t- Set a password for the root user
61 @echo
62 @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
63 @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
64 @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
65 @echo -e \\tany other configuration file required to suit your needs.
66 @echo
67 @echo -e \\t- Set-up the boot loader. See the relevant book section.
68 @echo
69 @echo -e \\t- Unmount the filesystems.
70 @echo
71 @echo If you are an experienced LFS user, several of those steps can be
72 @echo skipped or done in a different way. But then, that is something
73 @echo that you already know and there is no need to discuss it here.
74 @echo $(BOLD)
75 @echo --------------------------------------------------------------------------------
76 @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)$(CURSOR_ON)
77 @echo --------------------------------------------------------------------------------$(WHITE)
78endef
79
80define echo_boot_finished
81 @echo $(BOLD)
82 @echo --------------------------------------------------------------------------------
83 @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
84 @echo --------------------------------------------------------------------------------
85 @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
86 @echo --------------------------------------------------------------------------------
87 @echo
88 @echo The build is not complete. Follow the next steps:$(WHITE)
89 @echo
90 @echo -e \\t- Edit $(MOUNT_PT)/etc/fstab
91 @echo -e \\t and any other configuration file required to suit your needs.
92 @echo $(BOLD)
93 @echo $(BOLD)$(YELLOW)
94 @echo 1.If it is necessary, transfer the newly created partition to the target machine
95 @echo 2.Boot the new partition.
96 @echo 3.Once you are logged in issue the following commands
97 @echo -e \\t $(BOLD})cd /jhalfs
98 @echo -e \\t $(BOLD)make makesys
99 @echo The build process should resume. Follow any instructions that appear.
100 @echo --------------------------------------------------------------------------------
101 @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)$(CURSOR_ON)
102 @echo --------------------------------------------------------------------------------$(WHITE)
103endef
Note: See TracBrowser for help on using the repository browser.