Split the queue code out from data.js into a dedicated queue.js file (also split...
[jquery.git] / Rakefile
index e1c15bb..54fa3e8 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,12 +1,19 @@
 # Basic Rakefile for building jQuery
-files = [ "intro", "core", "data", "event", "support", "selector", "traversing", "attributes", "manipulation", "css", "ajax", "fx", "offset", "dimensions", "outro" ]
+files = [ "intro", "core", "data", "queue", "event", "support", "selector", "traversing", "attributes", "manipulation", "css", "ajax", "fx", "offset", "dimensions", "outro" ]
 
 date = `git log -1 | grep Date: | sed 's/[^:]*: *//'`.gsub(/\n/, "")
 version = `cat version.txt`.gsub(/\n/, "")
 
 task :default => :jquery
 
-task :jquery => [:selector] do
+task :init do
+       sh "if test ! -d test/qunit; then git clone git://github.com/jquery/qunit.git test/qunit; fi"
+       sh "if test ! -d src/sizzle; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi"
+       sh "cd src/sizzle && git pull origin master &> /dev/null"
+       sh "cd test/qunit && git pull origin master &> /dev/null"
+end
+
+task :jquery => [:init, :selector] do
        sh "mkdir -p dist"
 
        sh "cat " + files.map {|file| "src/" + file + ".js"}.join(" ") +