X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=Rakefile;fp=Rakefile;h=af31714265af2a7e66444ce99b57404541065e48;hb=839e97199c66894e0d2cadbd6a9f09e6d5198656;hp=e1c15bb3ee05fef7259bf60c867da169d8a07520;hpb=5480cd3fa181a2e105bba3c641ef58723fbd3521;p=jquery.git diff --git a/Rakefile b/Rakefile index e1c15bb..af31714 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(" ") +