Permalink
Browse files

Merge branch 'add_support_for_plugin_installation' into experimental

closes #267

* add_support_for_plugin_installation:
  Rakefile: Fix typos in the comments
  Rakefile: Add support for plugin installation.

Conflicts:
	Rakefile
  • Loading branch information...
2 parents b56f254 + 4617df8 commit 641b727c16a4850ced8d92106bcbd0ad358c7c6e @kalbasit kalbasit committed Nov 2, 2011
Showing with 20 additions and 1 deletion.
  1. +20 −1 Rakefile
View
@@ -9,6 +9,13 @@ module Janus
end
end
+# Return the root path
+#
+# @return [String] The absolute path to Janus repository
+def root_path
+ @root_path ||= File.expand_path(File.dirname(__FILE__))
+end
+
# Expand the path of a given file
#
# @param [String] file
@@ -17,6 +24,14 @@ def expand(file)
File.expand_path(file)
end
+namespace :plugins do
+ task :install do
+ # dummy task for plugin installation tasks.
+ end
+end
+
+Dir["#{root_path}/janus-*/tasks/**.rake"].each { |f| load f }
+
desc "link ViM configuration files."
task :link_vim_conf_files do
%w[ vimrc gvimrc ].each do |file|
@@ -40,4 +55,8 @@ task :update do
sh "git submodule update"
end
-task :default => [:update, :folders, :link_vim_conf_files]
+task :install => [:update, :folders, "plugins:install"] do
+ # Dummy task to run plugin installation tasks
+end
+
+task :default => [:update, :folders, :install, :link_vim_conf_files]

0 comments on commit 641b727

Please sign in to comment.