lib/setup.rb in dev_tasks-1.0.5 vs lib/setup.rb in dev_tasks-1.0.6
- old
+ new
@@ -3,9 +3,10 @@
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
}
\ No newline at end of file