Sha256: e9c034aaca32edf46577c96f7cd1f63050cbdf6420288b058bc7c8b661cf3376

Contents?: true

Size: 1.1 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
dev_commands-0.0.54 lib/build.rb
dev_commands-0.0.53 lib/build.rb
dev_commands-0.0.52 lib/build.rb
dev_commands-0.0.51 lib/build.rb
dev_commands-0.0.50 lib/build.rb
dev_commands-0.0.49 lib/build.rb