Skip to content

Commit f9b9c1f

Browse files
Forgot to make dest directory in profiles tasks.rake
1 parent 99a683c commit f9b9c1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backends/profile_doc/tasks.rake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Dir.glob("#{$root}/arch/profile_release/*.yaml") do |f|
5353
"#{$root}/lib/arch_obj_models/portfolio.rb",
5454
"#{$root}/lib/portfolio_design.rb",
5555
"#{$root}/lib/design.rb",
56-
"#{$root}/backends/profile_doc/templates/profile.adoc.erb"
56+
"#{PROFILE_DOC_DIR}/templates/profile.adoc.erb"
5757
].concat(profile_pathnames) do |t|
5858
# Create BaseArchitecture object. Function located in top-level Rakefile.
5959
puts "UPDATE: Creating BaseArchitecture #{base_isa_name} for #{t}"
@@ -86,6 +86,8 @@ Dir.glob("#{$root}/arch/profile_release/*.yaml") do |f|
8686
erb = ERB.new(File.read(template_path), trim_mode: "-")
8787
erb.filename = template_path.to_s
8888

89+
FileUtils.mkdir_p File.dirname(t.name)
90+
8991
# Convert ERB to final ASCIIDOC. Note that this code is broken up into separate function calls
9092
# each with a variable name to aid in running a command-line debugger on this code.
9193
puts "UPDATE: Converting ERB template to adoc for #{profile_release_name}"

0 commit comments

Comments
 (0)