git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5480cd3
)
Updated the Rakefile to use the correct init code.
author
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 20:56:40 +0000
(15:56 -0500)
committer
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 20:56:40 +0000
(15:56 -0500)
Rakefile
patch
|
blob
|
history
diff --git
a/Rakefile
b/Rakefile
index
e1c15bb
..
af31714
100644
(file)
--- a/
Rakefile
+++ b/
Rakefile
@@
-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 "cat " + files.map {|file| "src/" + file + ".js"}.join(" ") +
sh "mkdir -p dist"
sh "cat " + files.map {|file| "src/" + file + ".js"}.join(" ") +