On 2/16/07, M.Canales.es <[EMAIL PROTECTED]> wrote:
>
> After the current SHELL change, I think that that hack maybe could be replaced
> by:
>
> ifeq ($(shell ls /bin/bash),/bin/bash)
>   SHELL = /bin/bash
> else
>   SHELL = /tools/bin/bash
> endif
>
> or something more simple, if someone can find a better way.
>
> What do you think?

Good idea, but put a 2>/dev/null into the ls command so you don't see
garbage if it's not there yet. A slightly more robust check, but
probably not needed is

ifeq ($(shell [ -x /bin/bash ] && echo /bin/bash), /bin/bash)

since it also checks that you can execute bash.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to