From 2a0bf18bae3f0e2909c2e9442c465f76d52172a5 Mon Sep 17 00:00:00 2001 From: James Chen Date: Sun, 4 Mar 2012 20:01:04 +0900 Subject: [PATCH] use simple rake task to install shared libs --- README.md | 3 +-- Rakefile | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 Rakefile diff --git a/README.md b/README.md index 18a00a9..e84bb29 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ booting... ## How to build -* install [cundle](https://github.com/ashchan/cundle) -* under the project root directory, run `cundle install` to install 3rd-party dependencies +* under the project root directory, run `rake` to install 3rd-party dependencies * use Xcode 4.3 or above to build the project ## Requirements diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..167e44f --- /dev/null +++ b/Rakefile @@ -0,0 +1,18 @@ +require 'fileutils' + +task :default => [:install] + +desc "install 3rd-party libs" +task :install do + shared_lib = "SharedLib" + FileUtils.mkdir_p(shared_lib) + + FileUtils.cd("#{shared_lib}"); + + [ + ["https://github.com/kgn/DBPrefsWindowController.git", "master"], + ["https://github.com/RestKit/RestKit.git", "development"], + ].each do |lib| + `git clone #{lib[0]} -b #{lib[1]} --recursive` + end +end