[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux:169] Re: [Ttylinux]How to build ttylinux



harryxiyou wrote:
> On Fri, Feb 10, 2012 at 8:53 AM, Douglas Jerome <[email protected]> wrote:
>> harryxiyou wrote:
>>> On Thu, Feb 9, 2012 at 9:05 AM, Douglas Jerome <[email protected]> wrote:
>>>> I think I see two problems:
>>>>
>>>> 1) Look at the *ttylinux-config.sh* file again, around
>>>>   line 155; why is the second TTYLINUX_PLATFORM
>>>>   commented-out? It shouldn't be.
>>> Yes, you are right. But, when it is uncomment, i run the command 'make
>>> dist', which
>>> also has something wrong shown like following.
>>>
>>> [email protected]:~/workshop1/ttylinux-src-mp9# make dist
>>> Remove the 12.7-x86_64-pc built items.
>>> ./ttylinux-config.sh: 200: [[: not found

I just realized what is this "[[: not found" problem.

The Makefile in the top-level ttylinux directory has
shell script fragments to implement the rules; these
are executed by /bin/sh, in which case when it points
to bash, bash doesn't accept the [[ syntax.

The real fix is to change line 80 in the Makefile to be
SHELL=/bin/bash

And leave /bin/sh a symlink to dash, or whatever.