aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-11-30 15:56:40 -0500
committerjeresig <jeresig@gmail.com>2009-11-30 15:56:40 -0500
commit839e97199c66894e0d2cadbd6a9f09e6d5198656 (patch)
tree7e5a09c3d64efec7d4bd81e39939263d44f7ebda
parent5480cd3fa181a2e105bba3c641ef58723fbd3521 (diff)
downloadjquery-839e97199c66894e0d2cadbd6a9f09e6d5198656.tar.gz
jquery-839e97199c66894e0d2cadbd6a9f09e6d5198656.zip
Updated the Rakefile to use the correct init code.
-rw-r--r--Rakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index e1c15bb3e..af3171426 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,7 +6,14 @@ 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(" ") +