don't check for updates if we build a target

This commit is contained in:
Laurent Sansonetti
2014-09-06 19:00:06 +02:00
parent 1417069cf2
commit fdf87c05d2

View File

@@ -36,9 +36,11 @@ if Motion::Project::App.template == nil
require 'motion/project/template/ios'
end
# Check for updates.
motion_bin_path = File.join(File.dirname(__FILE__), '../../bin/motion')
system("/usr/bin/ruby \"#{motion_bin_path}\" update --check")
unless ENV['RM_TARGET_BUILD']
# Check for updates.
motion_bin_path = File.join(File.dirname(__FILE__), '../../bin/motion')
system("/usr/bin/ruby \"#{motion_bin_path}\" update --check")
end
desc "Clear local build objects"
task :clean do