lib/build.rb in dev_commands-0.0.17 vs lib/build.rb in dev_commands-0.0.18
- old
+ new
@@ -1,7 +1,31 @@
-class Build < Array
- def update
- Dir.glob('*.gemspec'){|gemspec|
- add "gem build #{gemspec}"
- }
- end
-end
+class Build < Array
+ def update
+ Dir.glob('*.gemspec'){|gemspec|
+ add "gem build #{gemspec}"
+ }
+ Dir.glob('**/*.sln'){|sln_file|
+ vs_version=MSBuild.get_vs_version(sln_file)
+ }
+
+
+
+ end
+end
+
+
+#glob='**/*.{gemspec,sln}'
+ #glob=DEV_TASKS[:build_glob] if(defined?(DEV_TASKS)) && DEV_TASKS.has_key?(:build_glob)
+# DEV_TASKS[:files][:build].each {|f|
+# self.add "gem build #{f}" if(f.include?('.gemspec'))
+# if(f.include?('.sln'))
+# vs_version=MSBuild.get_vs_version(f)
+# if File.exists? msbuild[vs_version]
+# MSBuild.get_configurations(f).each{ |configuration|
+# MSBuild.get_platforms(f).each{|platform|
+# Console.debug "configuration='#{configuration}', platform='#{platform}'"
+# self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
+# }
+# }
+# end
+# end
+# }
\ No newline at end of file