[blfs-support] Questions on (b)lfs-bootscripts-20120127

alupu at verizon.net alupu at verizon.net
Fri Feb 3 18:49:52 PST 2012

This is a continuation of my OP.

BTW, I'm finally talking Blfs here :)

3.  The blfs 'Makefile'

If the comment,
 "# The grep can probably be improved upon."
refers to

3.1. 'grep' proper
the 'grep' line looks good to me (for whatever that's worth :).

3.2. If it refers to the output,
Select an appropriate install target from the above list

spread over two pages (i.e., not legible in one view),
there is an "improvement" that displays as a shorter, bunched-up list:
install-service-dhclient install-service-dhcpcd install-service-bridge
install-service-ipx install-service-pppoe install-alsa install-httpd
install-autofs install-bind install-cups install-cyrus-sasl install-dbus
install-dhcp install-exim install-fam install-fcron install-gdm install-gpm
install-haldaemon install-heimdal install-iptables install-kerberos
install-lisa install-lprng install-mysql install-nas install-netfs
install-nfs-client install-nfs-server install-ntpd install-openldap1
install-openldap2 install-portmap install-postfix install-postgresql
install-proftpd install-random install-rpcbind install-rsyncd install-samba
install-swat install-sendmail install-soprano install-qpopper install-sshd
install-stunnel install-svn install-sysstat install-virtuoso install-vsftpd
install-winbind install-xinetd
Select an appropriate install target from the above list

by doing

[]$ diff Makefile-orig Makefile-"improved"
> ALEX=$(shell grep "^install" Makefile | cut -d ":" -f 1)
<       @grep "^install" Makefile | cut -d ":" -f 1
> #     @grep "^install" Makefile | cut -d ":" -f 1
>       @echo $(ALEX)

3.3 IF, as a third possibility, the problem is the ugly
 << make: *** [all] Error 1 >>
at the end of it all,

that's obviously obvious that it can be eliminated by changing
'exit 1' to 'exit 0'
so I cannot imagine the author had that in mind as a "problem"
to be improved.

-- Alex

More information about the blfs-support mailing list