Sha256: aa6f7d8f7fea3380dce1d17cbc8d3b8dda33ea94757179d2582b717df0e84fe1

Contents?: true

Size: 878 Bytes

Versions: 20

Compression:

Stored size: 878 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

20 entries across 20 versions & 2 rubygems

Version Path
dev-2.0.46 lib/setup.rb
dev-2.0.45 lib/setup.rb
dev-2.0.44 lib/setup.rb
dev-2.0.43 lib/setup.rb
dev-2.0.42 lib/setup.rb
dev_commands-0.0.58 lib/setup.rb
dev_commands-0.0.57 lib/setup.rb
dev_commands-0.0.54 lib/setup.rb
dev_commands-0.0.53 lib/setup.rb
dev_commands-0.0.52 lib/setup.rb
dev_commands-0.0.51 lib/setup.rb
dev_commands-0.0.50 lib/setup.rb
dev_commands-0.0.33 lib/setup.rb
dev_commands-0.0.32 lib/setup.rb
dev_commands-0.0.31 lib/setup.rb
dev_commands-0.0.30 lib/setup.rb
dev_commands-0.0.29 lib/setup.rb
dev_commands-0.0.28 lib/setup.rb
dev_commands-0.0.27 lib/setup.rb
dev_commands-0.0.26 lib/setup.rb