Sha256: 3efa8cddba2584c7da29a17beed5c7c0a69c5b7886c5443ac36ebad7f7918040
Contents?: true
Size: 854 Bytes
Versions: 18
Compression:
Stored size: 854 Bytes
Contents
# # use the SVN_EXPORTS hash to define svn exports destined for DEV_ROOT/dep # # SVN_EXPORT={ 'System.Data.SQLite/1.0.93.0' => 'https://third-party.googlecode.com/svn/trunk/System.Data.SQLite/1.0.93.0' } # class Setup < Array def update add 'bundle install' if(File.exists?('Gemfile')) Dir.glob('*.gemspec').each{|gemspec_file| add "<%Gemspec.update('#{gemspec_file}')%>" } if(defined?(SVN_EXPORTS)) SVN_EXPORTS.each{|k,v| if(!File.exists?("#{Command.dev_root}/dep/#{k}")) FileUtils.mkdir_p(File.dirname("#{Command.dev_root}/dep/#{k}")) if !File.exists?("#{Command.dev_root}/dep/#{k}") dest="#{Command.dev_root}/dep/#{k}" add "svn export #{v} #{Command.dev_root}/dep/#{k}" if !dest.include?("@") add "svn export #{v} #{Command.dev_root}/dep/#{k}@" if dest.include?("@") end } end end end
Version data entries
18 entries across 18 versions & 1 rubygems