Re: [ketchup] patch to allow for moving of .gitignore in 2.6.14

From: Steven Rostedt
Date: Sat Oct 29 2005 - 21:15:34 EST




On Sun, 30 Oct 2005, David Weinehall wrote:

> On Sat, Oct 29, 2005 at 05:06:21PM -0400, Steven Rostedt wrote:
> [snip]
>
> >
> > - err = os.system("mv linux*/* . ; rmdir linux*")
> > + err = os.system("shopt -s dotglob; mv linux*/* . ; rmdir linux*")
> > if err:
> > error("Unpacking failed: ", err)
> > sys.exit(-1)
>
>
> Uhm, this patch assumes that you're using bash as /bin/sh.

Well, aren't you? :-)

> Not everyone does. (I haven't checked the rest of the system calls
> in ketchup though, maybe this is a more generic problem?)

Yeah, the thought did occur to me that this is bash specific, and would
not be "portable". But I did think that this is very Linux specific, and
I'll go with the 99% of most Linux boxes use bash. But you are right to
complain because, like Linux, I like to be compatible with even the most
obscure setups.

When I get some more time, I'll play with some other methods, like what
Matt suggested. But this is the quick fix for those that do use bash as
the system shell, and want it to work for their system. Since currently,
it doesn't work for 2.6.14 from scratch.

-- Steve

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/