Commit 839e9719 authored by jeresig's avatar jeresig

Updated the Rakefile to use the correct init code.

parent 5480cd3f
...@@ -6,7 +6,14 @@ version = `cat version.txt`.gsub(/\n/, "") ...@@ -6,7 +6,14 @@ version = `cat version.txt`.gsub(/\n/, "")
task :default => :jquery 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 "mkdir -p dist"
sh "cat " + files.map {|file| "src/" + file + ".js"}.join(" ") + sh "cat " + files.map {|file| "src/" + file + ".js"}.join(" ") +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment