Umm, hmm - &> is perfectly valid shell - used for redirecting both stdout and stderr simultaneously: http://www.gnu.org/software/bash/manual/bashref.html#Redirections http://dsl.org/cookbook/cookbook_5.html#SEC57
Also - why is there an empty src/sizzle directory? That shouldn't be there to begin with (it isn't in git, it's only created when the clone occurs). Deleting it isn't really desired since that would do a complete, fresh, clone every single time a build is done (rather than just a pull). We're intentionally not using git submodules because the submodules need to be constantly re-synced with the HEAD of the other project (we tried to use them and it caused annoying synchronization issues between the projects). --John On Wed, Dec 30, 2009 at 10:46 AM, candlerb <b.cand...@pobox.com> wrote: > I was trying to build jquery from git, under Ubuntu 9.10. I had > checked out git://github.com/jquery/jquery.git, but there were a > couple of problems: > > (1) 'make init' was failing to fetch 'sizzle' > (2) The fetching was done as a background job, after make had returned > to the shell! > > br...@ubuntu:~/git/jquery$ make init > Grabbing external dependencies... > br...@ubuntu:~/git/jquery$ From git://github.com/jquery/qunit > * branch master -> FETCH_HEAD > Already up-to-date. > From git://github.com/jquery/jquery > * branch master -> FETCH_HEAD > Already up-to-date. > > br...@ubuntu:~/git/jquery$ make jquery > Grabbing external dependencies... > Building selector code from Sizzle > sed: can't read src/sizzle/sizzle.js: No such file or directory > make: *** [selector] Error 2 > br...@ubuntu:~/git/jquery$ From git://github.com/jquery/qunit > * branch master -> FETCH_HEAD > Already up-to-date. > From git://github.com/jquery/jquery > * branch master -> FETCH_HEAD > Already up-to-date. > > Looking through the Makefile, I found out the reasons for this: > firstly there was an existing, empty src/sizzle directory which was > preventing the fetch from taking place. And secondly, there were > spurious '&' which were causing the fetches to be done in the > background. > > The following patch fixed both of these for me: > > diff --git a/Makefile b/Makefile > index a0dbd8b..4b25239 100644 > --- a/Makefile > +++ b/Makefile > @@ -41,10 +41,12 @@ ${DIST_DIR}: > > init: > @@echo "Grabbing external dependencies..." > + @@rmdir test/qunit 2> /dev/null || true > + @@rmdir src/sizzle 2> /dev/null || true > @@if test ! -d test/qunit; then git clone > git://github.com/jquery/qunit.git > test/qunit; fi > @@if test ! -d src/sizzle; then git clone > git://github.com/jeresig/sizzle.git > src/sizzle; fi > - @@cd src/sizzle && git pull origin master &> /dev/null > - @@cd test/qunit && git pull origin master &> /dev/null > + @@cd src/sizzle && git pull origin master 2> /dev/null > + @@cd test/qunit && git pull origin master 2> /dev/null > > jquery: ${DIST_DIR} selector ${JQ} > > However I suggest it would be much better to use git submodules for > qunit and sizzle, because then 'git submodule update' will do all the > magic for you, and would be able to update existing checkouts too. > > Regards, > > Brian. > > -- > > You received this message because you are subscribed to the Google Groups > "jQuery Development" group. > To post to this group, send email to jquery-...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-dev+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/jquery-dev?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.