Skip to content

Commit

Permalink
[script] copy daidir for vcs-emu-trace
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Sep 4, 2024
1 parent 0a6c182 commit da079ec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions script/emu/src/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,16 @@ object Main:
)
)
)

if finalEmuType.get == "vcs-emu-trace" then
val libPath = emulator / os.up / os.up / "lib"
val daidirPath =
os.walk(libPath)
.filter(path => os.isDir(path))
.filter(path => path.segments.toSeq.last.endsWith(".daidir"))
.last
os.copy.into(daidirPath, outputPath, followLinks = true)

Logger.info(s"Output saved under ${outputPath}")
end run

Expand Down

0 comments on commit da079ec

Please sign in to comment.