summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-08-23 11:05:20 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-08-23 11:11:29 -0300
commita2f4715993feaa93d2997751381ebd88672ce23d (patch)
tree42c3f83a6900c35ac6ac0fd9a648137667308973
parentddda35488b1e2670e1463b83a1736296edd52921 (diff)
downloadbundler-a2f4715993feaa93d2997751381ebd88672ce23d.tar.gz
Add Rake task to allow building vendor dir
-rw-r--r--Rakefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index b424c4d688..3dd42f097c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -123,6 +123,21 @@ task :clean do
rm_rf "lib/bundler/man"
end
+namespace :vendor do
+ desc "Build the vendor dir"
+ task :build => :clean do
+ sh "git clone git://github.com/wycats/thor.git lib/bundler/vendor/tmp"
+ sh "mv lib/bundler/vendor/tmp/lib/* lib/bundler/vendor/"
+ rm_rf "lib/bundler/vendor/tmp"
+ end
+
+ desc "Clean the vendor dir"
+ task :clean do
+ rm_rf "lib/bundler/vendor"
+ end
+end
+task :build => "vendor:build"
+
begin
require 'rake/gempackagetask'
rescue LoadError