lib/tasks/setup.rb in dev-2.0.276 vs lib/tasks/setup.rb in dev-2.0.277

- old
+ new

@@ -100,14 +100,13 @@ end } Dir.glob('**/*.wxs').each{|wxs| current_version=IO.read(wxs).scan(/Version=[\"']([\d.]+)[\"']/)[0][0] puts "#{wxs} current version=#{current_version}" if env.debug? - if(current_version.include?('Version=')) - target_version="Version=\"#{VERSION}\")=" + if(!current_version.nil?)#nclude?('Version=')) + target_version=VERSION#{}"Version=\"#{VERSION}\")=" if(current_version != target_version) add_quiet "<%Text.replace_in_file('#{wxs}','#{current_version}','#{target_version}')%>" - add_quiet "<%Text.replace_in_file('Value=\"#{current_version}\"','Value=\"#{target_version}\"')%>" end end } end end \ No newline at end of file