Sha256: 950628bf19d5458062401b682fd247c4b5f69f3935ed21fca4e0a1d61b4f66b5

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

require_relative('msbuild.rb')
require_relative('gemspec.rb')
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"
				end
	    	}
	    end
	end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dev-2.0.46 lib/build.rb
dev-2.0.45 lib/build.rb
dev-2.0.44 lib/build.rb
dev-2.0.43 lib/build.rb
dev-2.0.42 lib/build.rb
dev_commands-0.0.58 lib/build.rb
dev_commands-0.0.57 lib/build.rb
dev_commands-0.0.56 lib/build.rb
dev_commands-0.0.55 lib/build.rb