require_relative('./commandarray.rb') class Setup < CommandArray def update if(defined?(DEV_TASKS)) DEV_TASKS[:svn_exports].each{|k,v| if(!File.exists?("#{Environment.dev_root}/dep/#{k}")) FileUtils.mkdir_p(File.dirname("#{Environment.dev_root}/dep/#{k}")) if !File.exists?("#{Environment.dev_root}/dep/#{k}") dest="#{Environment.dev_root}/dep/#{k}" add "svn export #{v} #{Environment.dev_root}/dep/#{k}" if !dest.include?("@") add "svn export #{v} #{Environment.dev_root}/dep/#{k}@" if dest.include?("@") end } end end end