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

Version Path
dev_commands-0.0.56 lib/setup.rb
dev_commands-0.0.55 lib/setup.rb
dev_commands-0.0.49 lib/setup.rb
dev_commands-0.0.48 lib/setup.rb
dev_commands-0.0.47 lib/setup.rb
dev_commands-0.0.46 lib/setup.rb
dev_commands-0.0.45 lib/setup.rb
dev_commands-0.0.44 lib/setup.rb
dev_commands-0.0.43 lib/setup.rb
dev_commands-0.0.42 lib/setup.rb
dev_commands-0.0.41 lib/setup.rb
dev_commands-0.0.40 lib/setup.rb
dev_commands-0.0.39 lib/setup.rb
dev_commands-0.0.38 lib/setup.rb
dev_commands-0.0.37 lib/setup.rb
dev_commands-0.0.36 lib/setup.rb
dev_commands-0.0.35 lib/setup.rb
dev_commands-0.0.34 lib/setup.rb