Sha256: 5f19e08b38bff305f1fc4176d732fdf77dfa60c71b8cf6a721d1815193e62ab2

Contents?: true

Size: 1.14 KB

Versions: 17

Compression:

Stored size: 1.14 KB

Contents

require 'rake'

SLN_FILES=FileList.new('*.sln','*/*.sln','*/*/*.sln')

class Build < Array
	def update

		changed = true
		#changed = Git.has_changes? if(File.exists?('.git') && defined?(Git))
		#changed = Svn.has_changes? if(File.exists?('.svn') && defined?(Svn))
        if(changed)
			Dir.glob('*.gemspec'){|gemspec|
	    		add "gem build #{gemspec}" if !File.exist?(Gemspec.gemfile gemspec)
	    	}
	    	
	    	SLN_FILES.each{|sln_file|
	    		vs_version=MSBuild.get_vs_version(sln_file)
				if(MSBuild.has_version?(vs_version))
					MSBuild.get_configurations(sln_file).each{ |configuration|
		      			MSBuild.get_platforms(sln_file).each{|platform|
			    			#Console.debug "configuration='#{configuration}', platform='#{platform}'"
		        			self.add "\"#{MSBuild.get_version(vs_version)}\" \"#{sln_file}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
		      			}
		    		}
	            else
	                puts "version #{vs_version} not found for MsBuild"
	                puts "MSBUILD[:#{vs_version}]='PATH_TO_MSBUILD' may be used to specify msbuild path."
				end
	    	}
	    end
	end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
dev-2.0.139 lib/commands/build.rb
dev-2.0.138 lib/commands/build.rb
dev-2.0.137 lib/commands/build.rb
dev-2.0.136 lib/commands/build.rb
dev-2.0.135 lib/commands/build.rb
dev-2.0.134 lib/commands/build.rb
dev-2.0.133 lib/commands/build.rb
dev-2.0.132 lib/commands/build.rb
dev-2.0.131 lib/commands/build.rb
dev-2.0.130 lib/commands/build.rb
dev-2.0.129 lib/commands/build.rb
dev-2.0.128 lib/commands/build.rb
dev-2.0.127 lib/commands/build.rb
dev-2.0.126 lib/commands/build.rb
dev-2.0.124 lib/commands/build.rb
dev-2.0.123 lib/commands/build.rb
dev-2.0.122 lib/commands/build.rb