Sha256: b7095d39d6e6faf93500b551ea6af07c29a647c51ed04ba8bd76886d05c30f61
Contents?: true
Size: 715 Bytes
Versions: 5
Compression:
Stored size: 715 Bytes
Contents
# -*- mode: ruby; coding: utf-8 -*- def env (name, defval = nil) Object.const_get(name) rescue ENV[name.to_s] || defval end unless respond_to? :env def header (mod) puts "-- #{mod.to_s.capitalize} " + "-" * 50 end unless respond_to? :header namespace :submodule do mods = env :SUBMODULES, [] git = env :GIT, 'git' task :init => mods.map {|m| "submodule:#{m}:init"} mods.each do |mod| namespace mod.intern do rakefile = File.join mod, 'Rakefile' task :init => rakefile file rakefile do header mod sh %( git submodule update --init #{mod} ) sh %( cd #{mod} && git checkout master ) end end# mod.intern end end# submodule
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
spacy-0.1.9 | task/submodule.rake |
spacy-0.1.8 | task/submodule.rake |
spacy-0.1.6 | task/submodule.rake |
spacy-0.1.5 | task/submodule.rake |
spacy-0.1.4 | task/submodule.rake |